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

Unified Diff: third_party/WebKit/Source/core/fetch/Resource.cpp

Issue 2044483002: Do not initiate revalidation of Resource with redirects from MemoryCache (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index c62b7fb1291843ae64163f5957375fd33d5a6325..fa9dcf5b7530fb95082b8eae1e2b51755a5bdf04 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -960,6 +960,11 @@ bool Resource::canUseCacheValidator()
if (hasCacheControlNoStoreHeader())
return false;
+
+ // Do not revalidate Resource with redirects. https://crbug.com/613971
+ if (!redirectChain().isEmpty())
+ return false;
+
return m_response.hasCacheValidatorFields() || m_resourceRequest.hasCacheValidatorFields();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698