Chromium Code Reviews
Description[CacheStorage] Temporarily preserved recently opened caches from CacheStorageDispatcherHost
Currently when a cache is opened it is preserved for 30 seconds by
content::CacheStorage so that, in case the cache is accessed again soon it
doesn't have to be reopened. This happened in
https://codereview.chromium.org/1470073003/.
We don't want to preserve every opened cache. Particularly, we don't want to
preserve caches opened by the QuotaManager when it's determining the size of
all of the caches. We only want to preserve caches opened on behalf of documents.
This CL moves the preservation logic to the CacheStorageDispatcherHost, where
open calls from the document are made. That way open calls from other clients don't
trigger preservation. The CL also lowers the time that the cache is held open to 5
seconds from 30 as that should be more than enough time between cache actions on most
pages.
BUG=623159
Committed: https://crrev.com/848127113da87ca062b139a6ab1de1b16a6df1d4
Cr-Commit-Position: refs/heads/master@{#402798}
Patch Set 1 #Patch Set 2 : Fixes #Patch Set 3 : Fix #
Total comments: 2
Patch Set 4 : Remove weak ptr #
Total comments: 2
Patch Set 5 : Simplified #
Messages
Total messages: 17 (7 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||