Changeset 195406 in webkit


Ignore:
Timestamp:
Jan 21, 2016 1:17:02 AM (8 years ago)
Author:
Carlos Garcia Campos
Message:

[SOUP] GResource resources should be cached indefinitely in memory cache
https://bugs.webkit.org/show_bug.cgi?id=153275

Reviewed by Žan Doberšek.

GResources can't change so they will always return the same data,
we never need to revalidate them.

  • loader/cache/CachedResource.cpp:

(WebCore::shouldCacheSchemeIndefinitely):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r195405 r195406  
     12016-01-21  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [SOUP] GResource resources should be cached indefinitely in memory cache
     4        https://bugs.webkit.org/show_bug.cgi?id=153275
     5
     6        Reviewed by Žan Doberšek.
     7
     8        GResources can't change so they will always return the same data,
     9        we never need to revalidate them.
     10
     11        * loader/cache/CachedResource.cpp:
     12        (WebCore::shouldCacheSchemeIndefinitely):
     13
    1142016-01-21  Nan Wang  <n_wang@apple.com>
    215
  • trunk/Source/WebCore/loader/cache/CachedResource.cpp

    r194880 r195406  
    366366        return true;
    367367#endif
     368#if USE(SOUP)
     369    if (equalIgnoringCase(scheme, "resource"))
     370        return true;
     371#endif
    368372    return equalIgnoringCase(scheme, "data");
    369373}
Note: See TracChangeset for help on using the changeset viewer.