Refactor Cache-Control and Vary definitions (#24347)

This commit is contained in:
Eugen Rochko
2023-04-19 16:07:29 +02:00
committed by GitHub
parent 4db8230194
commit e98c86050a
64 changed files with 424 additions and 173 deletions

View File

@ -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