mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-14 00:08:46 +00:00
Refactor Cache-Control and Vary definitions (#24347)
This commit is contained in:
@@ -14,7 +14,7 @@ class Settings::BaseController < ApplicationController
|
||||
end
|
||||
|
||||
def set_cache_headers
|
||||
response.headers['Cache-Control'] = 'private, no-store'
|
||||
response.cache_control.replace(private: true, no_store: true)
|
||||
end
|
||||
|
||||
def require_not_suspended!
|
||||
|
||||
Reference in New Issue
Block a user