Fix caching logic with regards to Accept-Language, Cookie, and Signature (#24604)
This commit is contained in:
parent
5dc3173ef8
commit
58a1b2e330
12 changed files with 62 additions and 45 deletions
|
@ -5,7 +5,7 @@ class FollowerAccountsController < ApplicationController
|
|||
include SignatureVerification
|
||||
include WebAppControllerConcern
|
||||
|
||||
vary_by -> { public_fetch_mode? ? 'Accept' : 'Accept, Signature' }
|
||||
vary_by -> { public_fetch_mode? ? 'Accept, Accept-Language, Cookie' : 'Accept, Accept-Language, Cookie, Signature' }
|
||||
|
||||
before_action :require_account_signature!, if: -> { request.format == :json && authorized_fetch_mode? }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue