Changeset 160498 in webkit
- Timestamp:
- Dec 12, 2013 11:22:55 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r160496 r160498 1 2013-12-12 Andreas Kling <akling@apple.com> 2 3 [Mac] Stop not caching HTTP resources with "Vary" header in response. 4 <https://webkit.org/b/125483> 5 <rdar://problem/11781097> 6 7 Remove the workaround preventing resources with the "Vary" header 8 from going into cache, as the CFNetwork cache has supported this 9 for quite a while now. 10 11 31.5 MB progression on Membuster3, because we can now mmap those 12 resources from disk once they are in the cache. 13 14 We keep the workaround on PLATFORM(WIN) for now. 15 16 Reviewed by Antti Koivisto. 17 1 18 2013-12-12 Sam Weinig <sam@webkit.org> 2 19 -
trunk/Source/WebCore/platform/network/mac/WebCoreResourceHandleAsDelegate.mm
r151994 r160498 256 256 return nil; 257 257 258 // Workaround for <rdar://problem/6300990> Caching does not respect Vary HTTP header.259 // FIXME: WebCore cache has issues with Vary, too (bug 58797, bug 71509).260 if ([[cachedResponse response] isKindOfClass:[NSHTTPURLResponse class]]261 && [[(NSHTTPURLResponse *)[cachedResponse response] allHeaderFields] objectForKey:@"Vary"])262 return nil;263 264 258 return m_handle->client()->willCacheResponse(m_handle, cachedResponse); 265 259 } -
trunk/Source/WebCore/platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm
r151994 r160498 370 370 } 371 371 372 // Workaround for <rdar://problem/6300990> Caching does not respect Vary HTTP header.373 // FIXME: WebCore cache has issues with Vary, too (bug 58797, bug 71509).374 if ([[cachedResponse response] isKindOfClass:[NSHTTPURLResponse class]]375 && [[(NSHTTPURLResponse *)[cachedResponse response] allHeaderFields] objectForKey:@"Vary"]) {376 m_cachedResponseResult = nullptr;377 dispatch_semaphore_signal(m_semaphore);378 return;379 }380 381 372 m_handle->client()->willCacheResponseAsync(m_handle, cachedResponse); 382 373 });
Note: See TracChangeset
for help on using the changeset viewer.