Cache public pages for 5 mins, not 1 year

Given these may be cached in CDNs, and they aren't versioned, a shorter
expiration time makes it practical to change them.
This commit is contained in:
Kevin McConnell
2026-01-28 14:26:03 +00:00
parent feaeaf5c68
commit 108337e823
+1 -1
View File
@@ -51,7 +51,7 @@ Rails.application.configure do
config.public_file_server.enabled = true
config.public_file_server.headers = {
"Cache-Control" => "public, max-age=#{1.year.to_i}"
"Cache-Control" => "public, max-age=#{5.minutes.to_i}"
}
# Select Active Storage service via env var; default to local disk.