Changeset 188755 in webkit
- Timestamp:
- Aug 21, 2015 9:18:52 AM (9 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r188746 r188755 1 2015-08-21 Chris Dumez <cdumez@apple.com> 2 3 Regression(r188698): http/tests/cache/disk-cache/disk-cache-revalidation-new-expire-header.html is very flaky 4 https://bugs.webkit.org/show_bug.cgi?id=148205 5 6 Reviewed by Antti Koivisto. 7 8 * http/tests/cache/disk-cache/disk-cache-revalidation-new-expire-header.html: 9 Drop temporary fix landed in r188698 to make the test less flaky. 10 1 11 2015-08-20 Nan Wang <n_wang@apple.com> 2 12 -
trunk/LayoutTests/http/tests/cache/disk-cache/disk-cache-revalidation-new-expire-header.html
r188698 r188755 14 14 15 15 runTests(tests, function() { 16 // Wait for things to settle down in the cache. 17 setTimeout(function() { 18 debug("304 response included an 'Expires' header in the future, so we should not need to revalidate this time."); 19 runTests(tests); 20 }, 200); 16 debug("304 response included an 'Expires' header in the future, so we should not need to revalidate this time."); 17 runTests(tests); 21 18 }); 22 19 -
trunk/Source/WebKit2/ChangeLog
r188751 r188755 1 2015-08-21 Chris Dumez <cdumez@apple.com> 2 3 Regression(r188698): http/tests/cache/disk-cache/disk-cache-revalidation-new-expire-header.html is very flaky 4 https://bugs.webkit.org/show_bug.cgi?id=148205 5 6 Reviewed by Antti Koivisto. 7 8 After r188640, successful revalidation of resources in the memory cache 9 would cause us to drop the corresponding resource in the disk cache. 10 This patch addresses the issue by not removing the cache entry if the 11 response is a successful revalidation (i.e. status code == 304). 12 13 Longer term, we should probably update the entry in the disk cache (if 14 it exists) when it is revalidated by the memory cache. Currently, 15 revalidation by the memory cache bypasses the disk cache and goes 16 straight to the network. Then, when the response comes back as a 304, 17 we try and store the response in the cache. However, a 304 status code 18 is not cacheable so the cache rejects it. 19 20 * NetworkProcess/cache/NetworkCache.cpp: 21 (WebKit::NetworkCache::Cache::store): 22 1 23 2015-08-20 Joonghun Park <jh718.park@samsung.com> 2 24 -
trunk/Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp
r188640 r188755 408 408 auto key = makeCacheKey(originalRequest); 409 409 410 // Make sure we don't keep a stale entry in the cache. 411 remove(key); 410 auto isSuccessfulRevalidation = response.httpStatusCode() == 304; 411 if (!isSuccessfulRevalidation) { 412 // Make sure we don't keep a stale entry in the cache. 413 remove(key); 414 } 412 415 413 416 if (m_statistics)
Note: See TracChangeset
for help on using the changeset viewer.