Skip to content

Commit 4dc64be

Browse files
committed
Do not initiate revalidation of Resource with redirects from MemoryCache
BUG=613971 Review-Url: https://codereview.chromium.org/2011283002 Cr-Commit-Position: refs/heads/master@{#397064} (cherry picked from commit 64ad58e) Review URL: https://codereview.chromium.org/2044483002 . Cr-Commit-Position: refs/branch-heads/2743@{crosswalk-project#235} Cr-Branched-From: 2b3ae3b-refs/heads/master@{#394939}
1 parent 1ac3639 commit 4dc64be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

third_party/WebKit/Source/core/fetch/Resource.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -960,6 +960,11 @@ bool Resource::canUseCacheValidator()
960960

961961
if (hasCacheControlNoStoreHeader())
962962
return false;
963+
964+
// Do not revalidate Resource with redirects. https://crbug.com/613971
965+
if (!redirectChain().isEmpty())
966+
return false;
967+
963968
return m_response.hasCacheValidatorFields() || m_resourceRequest.hasCacheValidatorFields();
964969
}
965970

0 commit comments

Comments
 (0)