Changeset 181904 in webkit
- Timestamp:
- Mar 24, 2015, 1:42:20 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/http/tests/cache/disk-cache/disk-cache-404-status-code-expected.txt (added)
-
LayoutTests/http/tests/cache/disk-cache/disk-cache-404-status-code.html (added)
-
LayoutTests/http/tests/cache/disk-cache/resources/generate-response.cgi (modified) (1 diff)
-
Source/WebKit2/ChangeLog (modified) (1 diff)
-
Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r181901 r181904 1 2015-03-24 Chris Dumez <cdumez@apple.com> 2 3 [WK2] Responses with 404 HTTP Status Code should be cacheable by default 4 https://bugs.webkit.org/show_bug.cgi?id=143014 5 <rdar://problem/20280310> 6 7 Reviewed by Antti Koivisto. 8 9 Add test to make sure that responses with 404 HTTP Status Code are 10 cacheable by default. 11 12 * http/tests/cache/disk-cache/disk-cache-404-status-code-expected.txt: Added. 13 * http/tests/cache/disk-cache/disk-cache-404-status-code.html: Added. 14 * http/tests/cache/disk-cache/resources/generate-response.cgi: 15 1 16 2015-03-24 Joseph Pecoraro <pecoraro@apple.com> 2 17 -
trunk/LayoutTests/http/tests/cache/disk-cache/resources/generate-response.cgi
r181894 r181904 7 7 @names = $query->param; 8 8 9 my $hasStatusCode = 0; 9 10 if ($query->http && $query->http("If-None-Match") eq "match") { 10 11 print "Status: 304\n"; 12 $hasStatusCode = 1; 11 13 } 12 14 13 15 foreach (@names) { 14 16 next if ($_ eq "uniqueId"); 17 next if ($_ eq "Status" and $hasStatusCode); 15 18 print $_ . ": " . $query->param($_) . "\n"; 16 19 } -
trunk/Source/WebKit2/ChangeLog
r181902 r181904 1 2015-03-24 Chris Dumez <cdumez@apple.com> 2 3 [WK2] Responses with 404 HTTP Status Code should be cacheable by default 4 https://bugs.webkit.org/show_bug.cgi?id=143014 5 <rdar://problem/20280310> 6 7 Reviewed by Antti Koivisto. 8 9 Make responses with 404 HTTP Status Code cacheable by default, as 10 per RFC 7231: 11 http://tools.ietf.org/html/rfc7231#section-6.5.4 12 13 Test: http/tests/cache/disk-cache/disk-cache-404-status-code.html 14 15 * NetworkProcess/cache/NetworkCache.cpp: 16 (WebKit::NetworkCache::canStore): 17 1 18 2015-03-24 Chris Dumez <cdumez@apple.com> 2 19 -
trunk/Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp
r181902 r181904 326 326 case 302: // Found 327 327 case 307: // Temporary Redirect 328 case 404: // Not Found 328 329 case 410: // Gone 329 330 if (response.cacheControlContainsNoStore()) {
Note:
See TracChangeset
for help on using the changeset viewer.