From 5f993c25808fbacc669a9852240561ad67671b6b Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Sun, 29 Apr 2018 21:10:44 +0200 Subject: Disable config.middleware.insert_before for assets cache for staging. Refs #5896 --- config/environments/production.rb | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/config/environments/production.rb b/config/environments/production.rb index 89b74154f..ea2252b57 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -138,12 +138,14 @@ Rails.application.configure do config.iev_url = ENV.fetch('IEV_URL',"http://iev:8080") config.rails_host = ENV.fetch('RAILS_HOST','http://front:3000') - config.middleware.insert_before ActionDispatch::Static, CacheSettings, { - /\/assets\/.*/ => { - cache_control: "max-age=#{1.year.to_i}, public", - expires: 1.year.to_i - } - } + # FIXME See #5896 + # config.middleware.insert_before ActionDispatch::Static, CacheSettings, { + # /\/assets\/.*/ => { + # cache_control: "max-age=#{1.year.to_i}, public", + # expires: 1.year.to_i + # } + # } + # Set node env for browserify-rails # config.browserify_rails.node_env = "production" end -- cgit v1.2.3