Remove duplicate cache header setting before action (#33833)
This commit is contained in:
@@ -6,7 +6,6 @@ class InvitesController < ApplicationController
|
||||
layout 'admin'
|
||||
|
||||
before_action :authenticate_user!
|
||||
before_action :set_cache_headers
|
||||
|
||||
def index
|
||||
authorize :invite, :create?
|
||||
@@ -45,8 +44,4 @@ class InvitesController < ApplicationController
|
||||
def resource_params
|
||||
params.expect(invite: [:max_uses, :expires_in, :autofollow, :comment])
|
||||
end
|
||||
|
||||
def set_cache_headers
|
||||
response.cache_control.replace(private: true, no_store: true)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user