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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user