Remove duplicate cache header setting before action (#33833)
This commit is contained in:
@@ -6,7 +6,6 @@ class RelationshipsController < ApplicationController
|
||||
before_action :authenticate_user!
|
||||
before_action :set_accounts, only: :show
|
||||
before_action :set_relationships, only: :show
|
||||
before_action :set_cache_headers
|
||||
|
||||
helper_method :following_relationship?, :followed_by_relationship?, :mutual_relationship?
|
||||
|
||||
@@ -66,8 +65,4 @@ class RelationshipsController < ApplicationController
|
||||
'remove_domains_from_followers'
|
||||
end
|
||||
end
|
||||
|
||||
def set_cache_headers
|
||||
response.cache_control.replace(private: true, no_store: true)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user