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

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

Issue 318673002: Use the ReloadBypassingCache policy (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed test name Created 6 years, 6 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 | « Source/core/loader/DocumentLoader.cpp ('k') | 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 00cea97c9dddc9b55deb7344e15646cd998da983..fa2d09f1637d988c985ebb7b46355737f4b31d9a 100644
--- a/Source/core/loader/FrameFetchContext.cpp
+++ b/Source/core/loader/FrameFetchContext.cpp
@@ -91,16 +91,6 @@ void FrameFetchContext::addAdditionalRequestHeaders(Document* document, Resource
m_frame->loader().applyUserAgent(request);
- 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) {
- request.setHTTPHeaderField("Cache-Control", "no-cache");
- request.setHTTPHeaderField("Pragma", "no-cache");
- }
- }
-
if (isMainResource)
request.setHTTPAccept(defaultAcceptHeader);
« no previous file with comments | « Source/core/loader/DocumentLoader.cpp ('k') | Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698