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

Unified Diff: chrome/browser/ui/webui/app_launcher_page_ui.cc

Issue 2774263002: Specify AllowCaching = false for dynamically-generated contents (Closed)
Patch Set: typo Created 3 years, 9 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
Index: chrome/browser/ui/webui/app_launcher_page_ui.cc
diff --git a/chrome/browser/ui/webui/app_launcher_page_ui.cc b/chrome/browser/ui/webui/app_launcher_page_ui.cc
index c33f90e268220e65b354e4ff4d3b35752932d638..3dea26b5afbab368a395841865f767f6bf55c8d5 100644
--- a/chrome/browser/ui/webui/app_launcher_page_ui.cc
+++ b/chrome/browser/ui/webui/app_launcher_page_ui.cc
@@ -126,6 +126,12 @@ bool AppLauncherPageUI::HTMLSource::ShouldReplaceExistingSource() const {
return false;
}
+bool AppLauncherPageUI::HTMLSource::AllowCaching() const {
+ // Should not be cached to reflect dynamically-generated contents that may
+ // depend on user profiles.
+ return false;
+}
+
std::string AppLauncherPageUI::HTMLSource::GetContentSecurityPolicyScriptSrc()
const {
// 'unsafe-inline' is added to script-src.
« no previous file with comments | « chrome/browser/ui/webui/app_launcher_page_ui.h ('k') | chrome/browser/ui/webui/extensions/extension_icon_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698