Description[HttpCache] LOAD_ONLY_FROM_CACHE should not imply LOAD_PREFERRING_CACHE
LOAD_ONLY_FROM_CACHE won't go to the network, but it also skips the check to
see if the cache entry is valid. Some clients need to load only from cache,
but also ensure that the returned entry is valid. To accomplish this, this CL:
1) Renames LOAD_PREFERRING_CACHE -> LOAD_SKIP_CACHE_VALIDATION
2) Changes LOAD_ONLY_FROM_CACHE to check entry validity by default
3) Changes all existing uses of LOAD_ONLY_FROM_CACHE to also add
LOAD_SKIP_CACHE_VALIDATION, keeping the old behavior
BUG=652649
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Committed: https://crrev.com/a067deede18317270cd2f118615650a2a755de8e
Cr-Commit-Position: refs/heads/master@{#428026}
Patch Set 1 #Patch Set 2 : Rebase and namespace fix #Patch Set 3 : Added test #Patch Set 4 : Nit #
Total comments: 2
Patch Set 5 : Rebase #Patch Set 6 : Fix test and address comment from PS4 #Patch Set 7 : Always check vary #Messages
Total messages: 71 (49 generated)
|