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

Unified Diff: content/browser/frame_host/navigation_request.cc

Issue 2695713011: PlzNavigate: set the right cache policy on back POST navigations (Closed)
Patch Set: Created 3 years, 10 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 | third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/frame_host/navigation_request.cc
diff --git a/content/browser/frame_host/navigation_request.cc b/content/browser/frame_host/navigation_request.cc
index 78feda7b14b01e63c73835236b173c8a1a6770ac..cce181790f1f4e754e5879a56fc161e95326eae1 100644
--- a/content/browser/frame_host/navigation_request.cc
+++ b/content/browser/frame_host/navigation_request.cc
@@ -75,11 +75,16 @@ void UpdateLoadFlagsWithCacheFlags(
break;
case FrameMsg_Navigate_Type::SAME_DOCUMENT:
case FrameMsg_Navigate_Type::DIFFERENT_DOCUMENT:
- case FrameMsg_Navigate_Type::HISTORY_SAME_DOCUMENT:
- case FrameMsg_Navigate_Type::HISTORY_DIFFERENT_DOCUMENT:
if (is_post)
*load_flags |= net::LOAD_VALIDATE_CACHE;
break;
+ case FrameMsg_Navigate_Type::HISTORY_SAME_DOCUMENT:
+ case FrameMsg_Navigate_Type::HISTORY_DIFFERENT_DOCUMENT:
+ if (is_post) {
+ *load_flags |=
+ net::LOAD_ONLY_FROM_CACHE | net::LOAD_SKIP_CACHE_VALIDATION;
+ }
+ break;
}
}
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698