Title: [195406] trunk/Source/WebCore
Revision
195406
Author
carlo...@webkit.org
Date
2016-01-21 01:17:02 -0800 (Thu, 21 Jan 2016)

Log 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):

Modified Paths

Diff

Modified: trunk/Source/WebCore/ChangeLog (195405 => 195406)


--- trunk/Source/WebCore/ChangeLog	2016-01-21 08:35:10 UTC (rev 195405)
+++ trunk/Source/WebCore/ChangeLog	2016-01-21 09:17:02 UTC (rev 195406)
@@ -1,3 +1,16 @@
+2016-01-21  Carlos Garcia Campos  <cgar...@igalia.com>
+
+        [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):
+
 2016-01-21  Nan Wang  <n_w...@apple.com>
 
         AX: [IOS] Implement next/previous text marker functions using TextIterator

Modified: trunk/Source/WebCore/loader/cache/CachedResource.cpp (195405 => 195406)


--- trunk/Source/WebCore/loader/cache/CachedResource.cpp	2016-01-21 08:35:10 UTC (rev 195405)
+++ trunk/Source/WebCore/loader/cache/CachedResource.cpp	2016-01-21 09:17:02 UTC (rev 195406)
@@ -365,6 +365,10 @@
     if (equalIgnoringCase(scheme, "applewebdata"))
         return true;
 #endif
+#if USE(SOUP)
+    if (equalIgnoringCase(scheme, "resource"))
+        return true;
+#endif
     return equalIgnoringCase(scheme, "data");
 }
 
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to