diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2023-03-16 02:55:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-16 02:55:54 +0100 |
commit | f0e727f958cd9428b2c56a3c6a65bbbf176bfa0d (patch) | |
tree | e751fd45f4edd451c04d98163439da68bf1cc890 /config/environments/development.rb | |
parent | be488adf711e75ab05a9b22b6241c676e5615c71 (diff) |
Add cache headers to static files served through Rails (#24120)
Diffstat (limited to 'config/environments/development.rb')
-rw-r--r-- | config/environments/development.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/config/environments/development.rb b/config/environments/development.rb index f5f6cbed8..32c5cce8b 100644 --- a/config/environments/development.rb +++ b/config/environments/development.rb @@ -16,12 +16,7 @@ Rails.application.configure do # Run rails dev:cache to toggle caching. if Rails.root.join('tmp/caching-dev.txt').exist? config.action_controller.perform_caching = true - config.cache_store = :redis_cache_store, REDIS_CACHE_PARAMS - - config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=#{2.days.to_i}", - } else config.action_controller.perform_caching = false config.cache_store = :null_store |