Lengthen local caching max-age (#11970)
This commit is contained in:
parent
1c8b44f326
commit
3c297ff05e
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue