Changeset 182154 in webkit
- Timestamp:
- Mar 30, 2015, 3:00:17 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/LayoutTests/ChangeLog ¶
r182152 r182154 1 2015-03-30 Antti Koivisto <antti@apple.com> 2 3 Don't cache resources that are very unlikely to be reused 4 https://bugs.webkit.org/show_bug.cgi?id=143226 5 6 Reviewed by Chris Dumez. 7 8 * http/tests/cache/disk-cache/disk-cache-validation-back-navigation-policy-expected.txt: 9 1 10 2015-03-30 Antti Koivisto <antti@apple.com> 2 11 -
TabularUnified trunk/LayoutTests/http/tests/cache/disk-cache/disk-cache-validation-back-navigation-policy-expected.txt ¶
r182152 r182154 31 31 32 32 response headers: {"Cache-control":"max-age=100, no-cache"} 33 response source: Disk cache33 response source: Network 34 34 35 35 response headers: {"ETag":"match"} … … 112 112 113 113 response headers: {"Cache-control":"max-age=100, no-cache, must-revalidate"} 114 response source: Disk cache114 response source: Network 115 115 116 116 response headers: {"ETag":"match","Cache-control":"must-revalidate"} -
TabularUnified trunk/Source/WebKit2/ChangeLog ¶
r182153 r182154 1 2015-03-30 Antti Koivisto <antti@apple.com> 2 3 Don't cache resources that are very unlikely to be reused 4 https://bugs.webkit.org/show_bug.cgi?id=143226 5 6 Reviewed by Chris Dumez. 7 8 Follow-up to cover Cache-control: no-cache case which also has zero cache lifetime. 9 10 * NetworkProcess/cache/NetworkCache.cpp: 11 (WebKit::NetworkCache::makeStoreDecision): 12 1 13 2015-03-30 Antti Koivisto <antti@apple.com> 2 14 -
TabularUnified trunk/Source/WebKit2/NetworkProcess/cache/NetworkCache.cpp ¶
r182152 r182154 280 280 if (!storeUnconditionallyForHistoryNavigation) { 281 281 auto currentTime = std::chrono::duration<double>(std::chrono::system_clock::now().time_since_epoch()); 282 bool hasNonZeroLifetime = WebCore::computeFreshnessLifetimeForHTTPFamily(response, currentTime.count()) > 0;282 bool hasNonZeroLifetime = !response.cacheControlContainsNoCache() && WebCore::computeFreshnessLifetimeForHTTPFamily(response, currentTime.count()) > 0; 283 283 284 284 bool possiblyReusable = response.hasCacheValidatorFields() || hasNonZeroLifetime;
Note:
See TracChangeset
for help on using the changeset viewer.