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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2398613002: [HttpCache] LOAD_ONLY_FROM_CACHE should not imply LOAD_PREFERRING_CACHE (Closed)
Patch Set: Always check vary Created 4 years, 2 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 | « content/child/web_url_request_util.cc ('k') | ios/net/crn_http_protocol_handler.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 29bee41952f4bea82c4307ff14f21a5d5d5b655b..dd03022baa65dccfdc6ae9090eb9fc81277cef51 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -6157,11 +6157,11 @@ void RenderFrameImpl::PopulateDocumentStateFromPending(
url::kJavaScriptScheme) &&
pending_navigation_params_->common_params.navigation_type ==
FrameMsg_Navigate_Type::RESTORE) {
- // We're doing a load of a page that was restored from the last session. By
- // default this prefers the cache over loading (LOAD_PREFERRING_CACHE) which
- // can result in stale data for pages that are set to expire. We explicitly
- // override that by setting the policy here so that as necessary we load
- // from the network.
+ // We're doing a load of a page that was restored from the last session.
+ // By default this prefers the cache over loading
+ // (LOAD_SKIP_CACHE_VALIDATION) which can result in stale data for pages
+ // that are set to expire. We explicitly override that by setting the
+ // policy here so that as necessary we load from the network.
//
// TODO(davidben): Remove this in favor of passing a cache policy to the
// loadHistoryItem call in OnNavigate. That requires not overloading
« no previous file with comments | « content/child/web_url_request_util.cc ('k') | ios/net/crn_http_protocol_handler.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698