Lengthen local caching max-age (#11970)

This commit is contained in:
Ben Halpern 2020-12-20 11:08:10 -05:00 committed by GitHub
parent 1c8b44f326
commit 3c297ff05e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,7 @@ Rails.application.configure do
# Apache or NGINX already handles this.
config.public_file_server.enabled = ENV["RAILS_SERVE_STATIC_FILES"].present?
config.public_file_server.headers = {
"Cache-Control" => "public, s-maxage=#{30.days.to_i}, max-age=#{30.days.to_i}"
"Cache-Control" => "public, s-maxage=#{30.days.to_i}, max-age=#{3000.days.to_i}"
}
# Compress JavaScripts and CSS.