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/test.rb | |
parent | be488adf711e75ab05a9b22b6241c676e5615c71 (diff) |
Add cache headers to static files served through Rails (#24120)
Diffstat (limited to 'config/environments/test.rb')
-rw-r--r-- | config/environments/test.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb index 9cbf31e8d..1328e155a 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -12,11 +12,6 @@ Rails.application.configure do # preloads Rails for running tests, you may have to set it to true. config.eager_load = false - # Configure public file server for tests with Cache-Control for performance. - config.public_file_server.enabled = true - config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=#{1.hour.to_i}" - } config.assets.digest = false # Show full error reports and disable caching. |