1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00
This commit is contained in:
Matt Jankowski 2024-06-06 11:54:46 -04:00
parent a060a6b8bf
commit 229c800971

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