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

Unified Diff: content/child/web_url_request_util.cc

Issue 2508473002: [DevTools] Properly handle cache-only requests when cache is disabled (Closed)
Patch Set: Fix Created 4 years, 1 month 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
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 3b39087ce455ae127e95a2ba4bd1473b5dff2d5f..ee89d5fdc5a45feda064de955c82d52215219cc8 100644
--- a/content/child/web_url_request_util.cc
+++ b/content/child/web_url_request_util.cc
@@ -209,6 +209,9 @@ int GetLoadFlagsForWebURLRequest(const blink::WebURLRequest& request) {
break;
case WebCachePolicy::UseProtocolCachePolicy:
break;
+ case WebCachePolicy::BypassCacheLoadOnlyFromCache:
+ load_flags |= net::LOAD_ONLY_FROM_CACHE | net::LOAD_BYPASS_CACHE;
+ break;
}
if (!request.allowStoredCredentials()) {
« no previous file with comments | « no previous file | net/http/http_cache_transaction.cc » ('j') | third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698