diff --git a/lib/sidekiq/web/action.rb b/lib/sidekiq/web/action.rb index b525923e2..481336855 100644 --- a/lib/sidekiq/web/action.rb +++ b/lib/sidekiq/web/action.rb @@ -68,7 +68,7 @@ def render(engine, content, options = {}) end def json(payload) - [200, {"Content-Type" => "application/json", "Cache-Control" => "no-store"}, [Sidekiq.dump_json(payload)]] + [200, {"Content-Type" => "application/json", "Cache-Control" => "private, no-store"}, [Sidekiq.dump_json(payload)]] end def initialize(env, block) diff --git a/lib/sidekiq/web/application.rb b/lib/sidekiq/web/application.rb index d1277bb16..158ff858b 100644 --- a/lib/sidekiq/web/application.rb +++ b/lib/sidekiq/web/application.rb @@ -314,7 +314,7 @@ def call(env) # rendered content goes here headers = { "Content-Type" => "text/html", - "Cache-Control" => "no-store", + "Cache-Control" => "private, no-store", "Content-Language" => action.locale, "Content-Security-Policy" => CSP_HEADER }