Index: third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
diff --git a/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp b/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
index 61b47c7850574d477ef9884ff14fd704ad6d9155..fcb16d5883d4f8cf81f14f1796871cae8beb6ccd 100644 |
--- a/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
+++ b/third_party/WebKit/Source/core/fetch/ResourceLoader.cpp |
@@ -137,6 +137,12 @@ bool ResourceLoader::willFollowRedirect( |
DCHECK(!passedNewRequest.isNull()); |
DCHECK(!passedRedirectResponse.isNull()); |
+ if (m_resource->resourceRequest().isCacheAwareLoadingActivated()) { |
+ // Fail as disk cache miss and retry in ResourceFetcher::didFailLoading(). |
+ didFail(nullptr, ResourceError::cacheMissError()); |
+ return false; |
+ } |
+ |
ResourceRequest& newRequest(passedNewRequest.toMutableResourceRequest()); |
const ResourceResponse& redirectResponse( |
passedRedirectResponse.toResourceResponse()); |