Closed Bug 462243 Opened 16 years ago Closed 9 years ago

Create an HTML document that links or intersperses commentary with mnot's cache tests

Categories

(Core :: Networking, defect)

defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: sayrer, Unassigned)

References

Details

Attachments

(3 files)

We have a good analysis of mnot's tests, but it's hard to relate each point to the specific tests. We should make it easier before we present the document to the HTTP working group.
Attached file PDF document
I decided to export it as PDF in order to control formatting.
Status: NEW → ASSIGNED
Very cool. I'll take a look and correct tests or give feedback here as appropriate; however, it may take a litle while (things are busy). Please ping me if I go quiet too long; guilt is a fantastic motivator.
Implements the (claimed) proper expected behaviour for no-cache and no-store cache-control directives. Comments and/or corrections are welcome. Note that this test fails with current code from mozilla-central.
Detailed testing for URIs with query-string (GET requests with '?' in the request-string)
(In reply to comment #2) > Very cool. I'll take a look and correct tests or give feedback here as > appropriate; however, it may take a litle while (things are busy). Please ping > me if I go quiet too long; guilt is a fantastic motivator. Ping... :) Comments on the expected results in the attached tests would be sufficient, I think. Once we agree that the tests are expecting the correct results I'll provide patches to necko.
Testcase and patch addressing the directive-precedence has been added to bug #203271
I'm not quite sure why this patch only fixes first half of the test on mnot's page... there is no reason why the order of headers in the response should matter. I'll look into the raw data from the network later.
(In reply to comment #2) > Please ping me if I go quiet too long; guilt is a fantastic motivator. *ping*
(In reply to comment #8) > (In reply to comment #2) > > Please ping me if I go quiet too long; guilt is a fantastic motivator. > > *ping* *beep*...
OK, going through the issues you raise; * Cache-Control: no-store request header honoured -- I agree with your analysis. The second response should not be cached. Will fix. Regarding reload upon no-store - that's a good question, might be worth an issue in httpbis. Intuitively, no-store implies no-cache, but this isn't said explicitly. * Cache-Control: no-cache request header honoured / Pragma: no-cache request header honoured -- these tests actually need to be re-structured. no-cache as a request directive means that the corresponding response not be taken from cache, not that the response shouldn't be cached for future use. * Heuristic freshness w/ "?" -- was a server configuration problem (mod_expires crept in after deployment); should be fixed now. FF still seems to be failing. * Redirects w/ and w/o freshness information -- fixed server scripts to generate redirects correctly. FF still seems to be failing. * Cache invalidation -- agreed, will look into fixing.
First, thanks for making time to respond to this. Some comments... (In reply to comment #10) > Intuitively, no-store implies no-cache, but this isn't said > explicitly. Yes, this is the problem. Looking at it from the other angle : If no-store does *not* imply no-cache, it would have to return any cached response and *then* remove all traces from the cache. Thus it would have the side-effect of deleting entries from cache and in practice mean something like : "Get the resource either from cache or from server, but make sure there are no traces in my cache afterwards". It could be spec'ed like this, I guess, but it's a rather complex semantics to attach to a request-header directive. > * Cache-Control: no-cache request header honoured / Pragma: no-cache request > header honoured -- these tests actually need to be re-structured. no-cache as a > request directive means that the corresponding response not be taken from > cache, not that the response shouldn't be cached for future use. Do you agree with the expected pattern at page 3 in the document (assuming the intuitive behaviour of no-store above)? Attachment #346423 [details] is supposed to implement this pattern and I use it as a testcase. > * Heuristic freshness w/ "?" -- was a server configuration problem (mod_expires > crept in after deployment); should be fixed now. FF still seems to be failing. Yes... I've added bug #468594 to address this separately. > * Redirects w/ and w/o freshness information -- fixed server scripts to > generate redirects correctly. FF still seems to be failing. This is a real problem, yes. Bug #415086 and bug #341189 are probably variations of this - do you agree?
(In reply to comment #10) > * Redirects w/ and w/o freshness information -- fixed server scripts to > generate redirects correctly. FF still seems to be failing. Yes, my installed FF 3.0.3 fails on these, but they seem to be ok in my compiled version from trunk. I'm not aware of any specific patch that that may have fixed the problem, though. Maybe biesi knows?
Depends on: 203271, 468594
*ping*
*beep* (worked nicely last time... :) )
*ping*
OS: Mac OS X → All
Hardware: x86 → All
Version: unspecified → Trunk
*ping again*
ping....
Bjarne, please stop pinging and better request review on your patches from the correct person.
-> default owner
Assignee: bjarne → nobody
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
FYI, I've ported the cache-related tests (finally) to WPT - see: https://github.com/w3c/web-platform-tests/pull/5137 Overall, looks good, with one or two minor exceptions; will create a couple of bugs.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: