From 46ca48b1a8e032778f1027e161f310388c67924f Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Tue, 12 Jan 2021 16:42:58 -0500 Subject: [PATCH] [cache] Change the base cache control to private --- app/controllers/api/base_controller.rb | 2 +- app/controllers/settings/base_controller.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/base_controller.rb b/app/controllers/api/base_controller.rb index 98dfa9bd..34e552c2 100644 --- a/app/controllers/api/base_controller.rb +++ b/app/controllers/api/base_controller.rb @@ -107,6 +107,6 @@ class Api::BaseController < ApplicationController end def set_cache_headers - response.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate' + response.headers['Cache-Control'] = 'private' end end diff --git a/app/controllers/settings/base_controller.rb b/app/controllers/settings/base_controller.rb index 3c404cff..79536e6a 100644 --- a/app/controllers/settings/base_controller.rb +++ b/app/controllers/settings/base_controller.rb @@ -11,6 +11,6 @@ class Settings::BaseController < ApplicationController end def set_cache_headers - response.headers['Cache-Control'] = 'no-cache, no-store, max-age=0, must-revalidate' + response.headers['Cache-Control'] = 'private' end end