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

Unified Diff: third_party/WebKit/Source/platform/network/ResourceRequest.cpp

Issue 1987973002: Reload cache control: remove redundant header insertion from Blink Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cacheControlContainsNoCache Created 4 years, 7 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: third_party/WebKit/Source/platform/network/ResourceRequest.cpp
diff --git a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
index 003096b31924594974906c672ea7889aa10bf276..a6d283f09980e1701fb9edefd810c386d9040b2d 100644
--- a/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
+++ b/third_party/WebKit/Source/platform/network/ResourceRequest.cpp
@@ -382,7 +382,7 @@ const CacheControlHeader& ResourceRequest::cacheControlHeader() const
bool ResourceRequest::cacheControlContainsNoCache() const
{
- return cacheControlHeader().containsNoCache;
+ return cacheControlHeader().containsNoCache || getCachePolicy() == WebCachePolicy::BypassingCache;
}
bool ResourceRequest::cacheControlContainsNoStore() const

Powered by Google App Engine
This is Rietveld 408576698