From e019c8cb44803fdafdd0be45b133691804494ce9 Mon Sep 17 00:00:00 2001 From: Robert Fletcher Date: Tue, 3 Dec 2024 19:50:25 -0800 Subject: [PATCH] Rails8: don't pass base to Integer (#1253) It causes an error because we're not passing a string. --- 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 163235cf2..04620ef23 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -21,7 +21,7 @@ # Cache assets for far-future expiry since they are all digest stamped. config.public_file_server.headers = { - "cache-control" => "public, max-age=#{Integer(1.year, 10)}" + "cache-control" => "public, max-age=#{Integer(1.year)}" } # Enable serving of images, stylesheets, and JavaScripts from an asset server.