diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-04-28 10:27:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 10:27:26 +0200 |
commit | faa336e3f7402b19c3417008b42cbef79c17db9c (patch) | |
tree | ef73b119f9b0b120962682b88ea9401835969685 /app/controllers/about_controller.rb | |
parent | 8979b709750493763368bca9b2fac79902086f48 (diff) |
Change logged-out WebUI HTML pages to be cached for a few seconds (#24708)
Diffstat (limited to 'app/controllers/about_controller.rb')
-rw-r--r-- | app/controllers/about_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/about_controller.rb b/app/controllers/about_controller.rb index 1043486140d..c4b7e9c9d26 100644 --- a/app/controllers/about_controller.rb +++ b/app/controllers/about_controller.rb @@ -8,7 +8,7 @@ class AboutController < ApplicationController before_action :set_instance_presenter def show - expires_in 0, public: true unless user_signed_in? + expires_in(15.seconds, public: true, stale_while_revalidate: 30.seconds, stale_if_error: 1.day) unless user_signed_in? end private |