Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Unified Diff: content/child/web_url_request_util.cc

Issue 2398613002: [HttpCache] LOAD_ONLY_FROM_CACHE should not imply LOAD_PREFERRING_CACHE (Closed)
Patch Set: Always check vary Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/loader/async_revalidation_manager.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_request_util.cc
diff --git a/content/child/web_url_request_util.cc b/content/child/web_url_request_util.cc
index 51830c388fc82894eaf085e36dc777c19276fb24..8b84d8be5308d250875a08859c84338d2da0995d 100644
--- a/content/child/web_url_request_util.cc
+++ b/content/child/web_url_request_util.cc
@@ -199,10 +199,10 @@ int GetLoadFlagsForWebURLRequest(const blink::WebURLRequest& request) {
load_flags |= net::LOAD_BYPASS_CACHE;
break;
case WebCachePolicy::ReturnCacheDataElseLoad:
- load_flags |= net::LOAD_PREFERRING_CACHE;
+ load_flags |= net::LOAD_SKIP_CACHE_VALIDATION;
break;
case WebCachePolicy::ReturnCacheDataDontLoad:
- load_flags |= net::LOAD_ONLY_FROM_CACHE;
+ load_flags |= net::LOAD_ONLY_FROM_CACHE | net::LOAD_SKIP_CACHE_VALIDATION;
break;
case WebCachePolicy::UseProtocolCachePolicy:
break;
« no previous file with comments | « content/browser/loader/async_revalidation_manager.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698