mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-02-21 20:20:34 +09:00
6 lines
182 B
Ruby
6 lines
182 B
Ruby
ActiveSupport.on_load(:active_storage_blob) do
|
|
ActiveStorage::DiskController.after_action only: :show do
|
|
response.set_header("Cache-Control", "max-age=3600, public")
|
|
end
|
|
end
|