File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
railties/lib/rails/generators/rails/app/templates/config/environments Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -26,9 +26,7 @@ Rails.application.configure do
26
26
27
27
<%- end -%>
28
28
config.cache_store = :memory_store
29
- config.public_file_server.headers = {
30
- "Cache-Control" => "public, max-age=#{2.days.to_i}"
31
- }
29
+ config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{2.days.to_i}" }
32
30
else
33
31
config.action_controller.perform_caching = false
34
32
Original file line number Diff line number Diff line change @@ -18,9 +18,7 @@ Rails.application.configure do
18
18
config.eager_load = ENV["CI"].present?
19
19
20
20
# Configure public file server for tests with Cache-Control for performance.
21
- config.public_file_server.headers = {
22
- "Cache-Control" => "public, max-age=#{1.hour.to_i}"
23
- }
21
+ config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{1.hour.to_i}" }
24
22
25
23
# Show full error reports and disable caching.
26
24
config.consider_all_requests_local = true
You can’t perform that action at this time.
0 commit comments