Changeset 160498 in webkit


Ignore:
Timestamp:
Dec 12, 2013 11:22:55 AM (10 years ago)
Author:
akling@apple.com
Message:

[Mac] Stop not caching HTTP resources with "Vary" header in response.
<https://webkit.org/b/125483>
<rdar://problem/11781097>

Remove the workaround preventing resources with the "Vary" header
from going into cache, as the CFNetwork cache has supported this
for quite a while now.

31.5 MB progression on Membuster3, because we can now mmap those
resources from disk once they are in the cache.

We keep the workaround on PLATFORM(WIN) for now.

Reviewed by Antti Koivisto.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r160496 r160498  
     12013-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
    1182013-12-12  Sam Weinig  <sam@webkit.org>
    219
  • trunk/Source/WebCore/platform/network/mac/WebCoreResourceHandleAsDelegate.mm

    r151994 r160498  
    256256        return nil;
    257257
    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 
    264258    return m_handle->client()->willCacheResponse(m_handle, cachedResponse);
    265259}
  • trunk/Source/WebCore/platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm

    r151994 r160498  
    370370        }
    371371
    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 
    381372        m_handle->client()->willCacheResponseAsync(m_handle, cachedResponse);
    382373    });
Note: See TracChangeset for help on using the changeset viewer.