Change logged-out WebUI HTML pages to be cached for a few seconds (#24708)
This commit is contained in:
parent
8979b70975
commit
faa336e3f7
7 changed files with 7 additions and 7 deletions
|
@ -8,7 +8,7 @@ class PrivacyController < ApplicationController
|
|||
before_action :set_instance_presenter
|
||||
|
||||
def show
|
||||
expires_in 0, public: true if current_account.nil?
|
||||
expires_in(15.seconds, public: true, stale_while_revalidate: 30.seconds, stale_if_error: 1.day) unless user_signed_in?
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue