We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3fdf537 commit 9cb11b7Copy full SHA for 9cb11b7
1 file changed
spec/dummy/config/environments/test.rb
@@ -14,11 +14,11 @@
14
15
# Configure static file server for tests with Cache-Control for performance.
16
if Rails.version.start_with?("4")
17
- config.public_file_server.enabled = true
18
- config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
19
- else
20
config.serve_static_files = true
21
config.static_cache_control = 'public, max-age=3600'
+ else
+ config.public_file_server.enabled = true
+ config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
22
end
23
24
# Show full error reports and disable caching.
0 commit comments