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

Unified Diff: Source/core/loader/FrameFetchContext.cpp

Issue 309693002: Add a value for end-to-end reloads in Cache policy (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Addressed Przemek's comments Created 6 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
« no previous file with comments | « no previous file | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/loader/FrameFetchContext.cpp
diff --git a/Source/core/loader/FrameFetchContext.cpp b/Source/core/loader/FrameFetchContext.cpp
index e0fc3159e275654e2f099d80ba7e373de067a112..3267fa4bfe86108e3a4b0bf3a62a3eaeb96625c8 100644
--- a/Source/core/loader/FrameFetchContext.cpp
+++ b/Source/core/loader/FrameFetchContext.cpp
@@ -91,7 +91,8 @@ void FrameFetchContext::addAdditionalRequestHeaders(Document* document, Resource
m_frame->loader().applyUserAgent(request);
- if (request.cachePolicy() == ReloadIgnoringCacheData) {
+ if (request.cachePolicy() == ReloadIgnoringCacheData
+ || request.cachePolicy() == ReloadBypassingCache) {
if (m_frame->loader().loadType() == FrameLoadTypeReload) {
request.setHTTPHeaderField("Cache-Control", "max-age=0");
} else if (m_frame->loader().loadType() == FrameLoadTypeReloadFromOrigin) {
« no previous file with comments | « no previous file | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698