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

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

Issue 2828243002: Give |allow_stale_resources_| a lower priority in DetermineRevalidationPolicy (Closed)
Patch Set: rebase Created 3 years, 8 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/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 b225c493e8b0c89edf4f7fdd1fa3b7a1b0a534ba..bb098793b07793070e476c8ffe62ec73d4bd8ca5 100644
--- a/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/platform/loader/fetch/ResourceFetcher.cpp
@@ -923,10 +923,6 @@ ResourceFetcher::DetermineRevalidationPolicy(
return kReload;
}
- // Don't reload resources while pasting.
- if (allow_stale_resources_)
- return kUse;
-
if (!fetch_params.Options().CanReuseRequest(existing_resource->Options()))
return kReload;
@@ -934,6 +930,10 @@ ResourceFetcher::DetermineRevalidationPolicy(
if (existing_resource->IsPreloaded())
return kUse;
+ // Don't reload resources while pasting.
+ if (allow_stale_resources_)
+ return kUse;
+
// WebCachePolicy::ReturnCacheDataElseLoad uses the cache no matter what.
if (request.GetCachePolicy() == WebCachePolicy::kReturnCacheDataElseLoad)
return kUse;
« 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