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

Unified Diff: net/http/http_cache.cc

Issue 2398613002: [HttpCache] LOAD_ONLY_FROM_CACHE should not imply LOAD_PREFERRING_CACHE (Closed)
Patch Set: Nit 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
Index: net/http/http_cache.cc
diff --git a/net/http/http_cache.cc b/net/http/http_cache.cc
index fc2d7065fcfcdd96a40eb82175fd252c40ca3863..2b2a85e5d1bf7f602bf2d685d93d10fe374fc823 100644
--- a/net/http/http_cache.cc
+++ b/net/http/http_cache.cc
@@ -231,7 +231,7 @@ void HttpCache::MetadataWriter::Write(const GURL& url,
DCHECK(buf->data());
request_info_.url = url;
request_info_.method = "GET";
- request_info_.load_flags = LOAD_ONLY_FROM_CACHE;
+ request_info_.load_flags = LOAD_ONLY_FROM_CACHE | LOAD_SKIP_CACHE_VALIDATION;
expected_response_time_ = expected_response_time;
buf_ = buf;

Powered by Google App Engine
This is Rietveld 408576698