diff --git a/config/environments/production.rb b/config/environments/production.rb index 489dedbc..0a537d3a 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -23,6 +23,7 @@ # Disable serving static files from the `/public` folder by default since # 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, max-age=#{1.day.to_i}" } # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier