aboutsummaryrefslogtreecommitdiffstats
path: root/config/environments/development.rb
diff options
context:
space:
mode:
authorZog2018-04-17 16:53:54 +0200
committerZog2018-04-17 16:53:54 +0200
commit513c252fec68c0073e537d1952d90394ec8c401e (patch)
tree1a06290d16710e1789a72239f002a3dfdd281b34 /config/environments/development.rb
parentac9495472164136dd4604f89c7bebaee3cecdd0c (diff)
downloadchouette-core-513c252fec68c0073e537d1952d90394ec8c401e.tar.bz2
Refs #5896; Move our custom middleware up in the stack
This will ensure it is used even for static files
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r--config/environments/development.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb
index 7bd049979..d08077769 100644
--- a/config/environments/development.rb
+++ b/config/environments/development.rb
@@ -96,9 +96,11 @@ Rails.application.configure do
config.i18n.available_locales = [:fr, :en]
+ config.serve_static_files = true
+
config.middleware.insert_after(ActionDispatch::Static, Rack::LiveReload) if ENV['LIVERELOAD']
config.middleware.use I18n::JS::Middleware
- config.middleware.use CacheSettings, {
+ config.middleware.insert_before ActionDispatch::Static, CacheSettings, {
/\/assets\/.*/ => {
cache_control: "max-age=86400, public",
expires: 86400