Remove duplicate cache header setting before action (#33833)
This commit is contained in:
parent
8dce5138dd
commit
c3419d146a
12 changed files with 0 additions and 62 deletions
|
@ -5,7 +5,6 @@ class StatusesCleanupController < ApplicationController
|
|||
|
||||
before_action :authenticate_user!
|
||||
before_action :set_policy
|
||||
before_action :set_cache_headers
|
||||
|
||||
def show; end
|
||||
|
||||
|
@ -30,8 +29,4 @@ class StatusesCleanupController < ApplicationController
|
|||
def resource_params
|
||||
params.expect(account_statuses_cleanup_policy: [:enabled, :min_status_age, :keep_direct, :keep_pinned, :keep_polls, :keep_media, :keep_self_fav, :keep_self_bookmark, :min_favs, :min_reblogs])
|
||||
end
|
||||
|
||||
def set_cache_headers
|
||||
response.cache_control.replace(private: true, no_store: true)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue