pull/30391/head
Matt Jankowski 2024-06-06 11:54:46 -04:00
parent 7d09701ef6
commit eb2886c343
1 changed files with 3 additions and 1 deletions

View File

@ -26,7 +26,9 @@ Rails.application.configure do
config.action_controller.enable_fragment_cache_logging = true
config.cache_store = :redis_cache_store, REDIS_CACHE_PARAMS
config.public_file_server.headers = { 'Cache-Control' => "public, max-age=#{2.days.to_i}" }
config.public_file_server.headers = {
'Cache-Control' => "public, max-age=#{2.days.to_i}",
}
else
config.action_controller.perform_caching = false