| Summary: | [WK2] Responses with 404 HTTP Status Code should be cacheable by default | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> | ||||||
| Component: | WebKit2 | Assignee: | Chris Dumez <cdumez> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | barraclough, commit-queue, koivisto, webkit-bug-importer | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | 528+ (Nightly build) | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| URL: | http://tools.ietf.org/html/rfc7231#section-6.5.4 | ||||||||
| Attachments: |
|
||||||||
|
Description
Chris Dumez
2015-03-24 13:18:38 PDT
Created attachment 249343 [details]
Patch
Comment on attachment 249343 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=249343&action=review > LayoutTests/http/tests/cache/disk-cache/disk-cache-404-status-code.html:21 > +var testMatrix = > +[ > + [ > + { responseHeaders: {'Status': '404', 'Cache-control': 'max-age=0' } }, > + { responseHeaders: {'Status': '404', 'Cache-control': 'max-age=100' } }, > + ], > + ]; > + > +description("Test that responses with HTTP status code 404 are cacheable"); > + > +var tests = generateTests(testMatrix); > + > +debug("running " + tests.length + " tests"); > +debug(""); > + > +runTests(tests); If you don't need permutations you can just define the tests as simple array and call runTests directly. Created attachment 249347 [details]
Patch
Comment on attachment 249347 [details] Patch Clearing flags on attachment: 249347 Committed r181904: <http://trac.webkit.org/changeset/181904> All reviewed patches have been landed. Closing bug. |