Skip to content

Commit 64ad58e

Browse files
hiroshige-gCommit bot
authored and
Commit bot
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}
1 parent cfa618b commit 64ad58e

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
@@ -967,6 +967,11 @@ bool Resource::canUseCacheValidator()
967967

968968
if (hasCacheControlNoStoreHeader())
969969
return false;
970+
971+
// Do not revalidate Resource with redirects. https://crbug.com/613971
972+
if (!redirectChain().isEmpty())
973+
return false;
974+
970975
return m_response.hasCacheValidatorFields() || m_resourceRequest.hasCacheValidatorFields();
971976
}
972977

0 commit comments

Comments
 (0)