From 3c297ff05eafc9a18e71c62bd184accfd1b54438 Mon Sep 17 00:00:00 2001 From: Ben Halpern Date: Sun, 20 Dec 2020 11:08:10 -0500 Subject: [PATCH] Lengthen local caching max-age (#11970) --- config/environments/production.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index d5c04bb64..f288ece56 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -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.