Refactor Cache-Control and Vary definitions (#24347)
		
	This commit is contained in:
		
					parent
					
						
							
								4db8230194
							
						
					
				
			
			
				commit
				
					
						e98c86050a
					
				
			
		
					 64 changed files with 424 additions and 173 deletions
				
			
		|  | @ -5,8 +5,9 @@ class FollowingAccountsController < ApplicationController | |||
|   include SignatureVerification | ||||
|   include WebAppControllerConcern | ||||
| 
 | ||||
|   vary_by -> { public_fetch_mode? ? 'Accept' : 'Accept, Signature' } | ||||
| 
 | ||||
|   before_action :require_account_signature!, if: -> { request.format == :json && authorized_fetch_mode? } | ||||
|   before_action :set_cache_headers | ||||
| 
 | ||||
|   skip_around_action :set_locale, if: -> { request.format == :json } | ||||
|   skip_before_action :require_functional!, unless: :whitelist_mode? | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue