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

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

Issue 2767413002: FrameFetchContext should respect BypassingCache for main resources (Closed)
Patch Set: merge master Created 3 years, 9 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 | third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
index 6d117db8fe981bf5b26411c1fcd3c4e6bfcf0b7a..01200db5e9f1bd3fe00bbb1e19c5e5756d668d1f 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
@@ -289,13 +289,10 @@ WebCachePolicy determineFrameWebCachePolicy(Frame* frame,
}
// Respects BypassingCache rather than parent's policy.
- // TODO(toyoshim): Adopt BypassingCache even for MainResource.
FrameLoadType loadType =
toLocalFrame(frame)->loader().documentLoader()->loadType();
- if (resourceType == ResourceType::kIsNotMainResource &&
- loadType == FrameLoadTypeReloadBypassingCache) {
+ if (loadType == FrameLoadTypeReloadBypassingCache)
return WebCachePolicy::BypassingCache;
- }
// Respects parent's policy if it has a special one.
WebCachePolicy parentPolicy =
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698