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

Unified Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp

Issue 2681233002: Actually handle the Vary header in blink, rather than punting on sight. (Closed)
Patch Set: Remove whitespace handling and case sensitivity cases Created 3 years, 10 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/loader/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
index 5f21df77cecdece5778751731868621b2f203f17..9dc5030f25da3af35dd7c02cc825ec325cedfca5 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
@@ -970,8 +970,7 @@ ResourceFetcher::determineRevalidationPolicy(Resource::Type type,
existingResource == cachedResource(request.url()))
return Use;
- // Defer to the browser process cache for Vary header handling.
- if (existingResource->hasVaryHeader())
+ if (existingResource->mustReloadDueToVaryHeader(request))
return Reload;
// If any of the redirects in the chain to loading the resource were not

Powered by Google App Engine
This is Rietveld 408576698