Remove duplicate cache header setting before action (#33833)
This commit is contained in:
@@ -6,7 +6,6 @@ class Filters::StatusesController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
before_action :set_filter
|
||||
before_action :set_status_filters
|
||||
before_action :set_cache_headers
|
||||
|
||||
PER_PAGE = 20
|
||||
|
||||
@@ -40,8 +39,4 @@ class Filters::StatusesController < ApplicationController
|
||||
def action_from_button
|
||||
'remove' if params[:remove]
|
||||
end
|
||||
|
||||
def set_cache_headers
|
||||
response.cache_control.replace(private: true, no_store: true)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user