{"push_id":617983528,"size":3,"distinct_size":3,"ref":"refs/heads/master","head":"a45cb0a46f9f57b269e66105bedd20b72e97173e","before":"effe0a6b8059df91567ae5ec5a037ed20cbc5caf","commits":[{"sha":"1229ead761adf9941ef9e133365ed9e691ce44c7","author":{"email":"ede5d8c27b7232d58457a69f3744a7714b0dc4d7@apple.com","name":"antti@apple.com"},"message":"Don't cache resources that are very unlikely to be reused\nhttps://bugs.webkit.org/show_bug.cgi?id=143226\n<rdar://problem/20347160>\n\nReviewed by Geoff Garen.\n\nSource/WebCore:\n\nAllow overriding resource load priorities via Internals for testing.\n\n* loader/FrameLoader.cpp:\n(WebCore::FrameLoader::addExtraFieldsToRequest):\n(WebCore::FrameLoader::clearTestingOverrides):\n* loader/FrameLoader.h:\n(WebCore::FrameLoader::setOverrideResourceLoadPriorityForTesting):\n(WebCore::FrameLoader::clearOverrideCachePolicyForTesting): Deleted.\n* page/DiagnosticLoggingKeys.cpp:\n(WebCore::DiagnosticLoggingKeys::unlikelyToReuseKey):\n* page/DiagnosticLoggingKeys.h:\n\n    Add a key.\n\n* testing/Internals.cpp:\n(WebCore::Internals::resetToConsistentState):\n(WebCore::stringToResourceLoadPriority):\n(WebCore::Internals::setOverrideResourceLoadPriority):\n* testing/Internals.h:\n* testing/Internals.idl:\n\nSource/WebKit2:\n\nWe are writing lots of resources to the cache that are never used again.\n\nIn browse-around-randomly test this reduced number of cache entries created by ~20% and bytes written by ~5%.\n\n* NetworkProcess/cache/NetworkCache.cpp:\n(WebKit::NetworkCache::makeUseDecision):\n(WebKit::NetworkCache::makeRetrieveDecision):\n\n    Rename for clarity.\n\n(WebKit::NetworkCache::makeStoreDecision):\n\n    Store only if the resource has non-zero expiration or has validation headers.\n\n    Very High priority resources (main resources) keep the existing policy to minimize impact\n    on back navigation and tab restore.\n\n(WebKit::NetworkCache::Cache::retrieve):\n(WebKit::NetworkCache::Cache::store):\n(WebKit::NetworkCache::canUse): Deleted.\n(WebKit::NetworkCache::canRetrieve): Deleted.\n(WebKit::NetworkCache::canStore): Deleted.\n* NetworkProcess/cache/NetworkCache.h:\n* NetworkProcess/cache/NetworkCacheStatistics.cpp:\n(WebKit::NetworkCache::storeDecisionToDiagnosticKey):\n\nLayoutTests:\n\n* http/tests/cache/disk-cache/disk-cache-request-max-stale-expected.txt:\n* http/tests/cache/disk-cache/disk-cache-request-max-stale-expected.html:\n\n    Keep max-age: 0 cacheable in this test by adding a validation header.\n\n* http/tests/cache/disk-cache/disk-cache-validation-back-navigation-policy-expected.txt:\n* http/tests/cache/disk-cache/disk-cache-validation-back-navigation-policy.html:\n\n    Rebase and expand to cover the high priority resource case.\n\n\n\ngit-svn-id: http://svn.webkit.org/repository/webkit/trunk@182152 268f45cc-cd09-0410-ab3c-d52691b4dbfc","distinct":true,"url":"https://api.github.com/repos/paul99/webkit-mips/commits/1229ead761adf9941ef9e133365ed9e691ce44c7"},{"sha":"5344ee711b542a9d312d0511cf3cf87cedafc134","author":{"email":"ede5d8c27b7232d58457a69f3744a7714b0dc4d7@apple.com","name":"antti@apple.com"},"message":"Include cache entry worth to json dump\nhttps://bugs.webkit.org/show_bug.cgi?id=143202\n\nFollow-up fix.\n\n* NetworkProcess/cache/NetworkCacheStorage.cpp:\n(WebKit::NetworkCache::computeRecordWorth):\n\n    This accidentally gave the error case worth 1 rather than 0 as it should be.\n\n\n\ngit-svn-id: http://svn.webkit.org/repository/webkit/trunk@182153 268f45cc-cd09-0410-ab3c-d52691b4dbfc","distinct":true,"url":"https://api.github.com/repos/paul99/webkit-mips/commits/5344ee711b542a9d312d0511cf3cf87cedafc134"},{"sha":"a45cb0a46f9f57b269e66105bedd20b72e97173e","author":{"email":"ede5d8c27b7232d58457a69f3744a7714b0dc4d7@apple.com","name":"antti@apple.com"},"message":"Don't cache resources that are very unlikely to be reused\nhttps://bugs.webkit.org/show_bug.cgi?id=143226\n\nReviewed by Chris Dumez.\n\nSource/WebKit2:\n\nFollow-up to cover Cache-control: no-cache case which also has zero cache lifetime.\n\n* NetworkProcess/cache/NetworkCache.cpp:\n(WebKit::NetworkCache::makeStoreDecision):\n\nLayoutTests:\n\n* http/tests/cache/disk-cache/disk-cache-validation-back-navigation-policy-expected.txt:\n\n\n\ngit-svn-id: http://svn.webkit.org/repository/webkit/trunk@182154 268f45cc-cd09-0410-ab3c-d52691b4dbfc","distinct":true,"url":"https://api.github.com/repos/paul99/webkit-mips/commits/a45cb0a46f9f57b269e66105bedd20b72e97173e"}]}