Refactor Cache-Control and Vary definitions (#24347)
				
					
				
			This commit is contained in:
		@@ -1,11 +1,9 @@
 | 
			
		||||
# frozen_string_literal: true
 | 
			
		||||
 | 
			
		||||
module WellKnown
 | 
			
		||||
  class HostMetaController < ActionController::Base
 | 
			
		||||
  class HostMetaController < ActionController::Base # rubocop:disable Rails/ApplicationController
 | 
			
		||||
    include RoutingHelper
 | 
			
		||||
 | 
			
		||||
    before_action { response.headers['Vary'] = 'Accept' }
 | 
			
		||||
 | 
			
		||||
    def show
 | 
			
		||||
      @webfinger_template = "#{webfinger_url}?resource={uri}"
 | 
			
		||||
      expires_in 3.days, public: true
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user