From 1abb1d425caca524fd75d66a2f3750dc43926e7b Mon Sep 17 00:00:00 2001 From: Jeremy Prevost Date: Mon, 3 Apr 2017 14:59:07 -0400 Subject: [PATCH] Replace deprecated syntax This accomplishes the same thing but uses the new non-deprecated syntax to achieve it closes #155 --- 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 ef22e292..806317f2 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -26,7 +26,7 @@ config.assets.compile = false # Force Expires Header to the maximum value - config.static_cache_control = 'public, max-age=30758400' + config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=30758400' } # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb