aboutsummaryrefslogtreecommitdiffstats
path: root/config/environments/development.rb
diff options
context:
space:
mode:
authorteddywing2018-04-24 17:11:40 +0200
committerGitHub2018-04-24 17:11:40 +0200
commit32c47f4d0ce0c6ed0f41359ed15178da18b5f5d9 (patch)
tree854bd31986f01efecc8582f9f2466f46e5f027df /config/environments/development.rb
parenteb51cf0aa62a96c552c1a32778aa84e64df458a6 (diff)
parent513c252fec68c0073e537d1952d90394ec8c401e (diff)
downloadchouette-core-32c47f4d0ce0c6ed0f41359ed15178da18b5f5d9.tar.bz2
Merge pull request #494 from af83/5896-add-cache-headers
5896 Move our custom middleware up in the stack
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