cc1051c968
By default the Active Storage URLs are valid for 5 minutes. We should avoid caching the responses for longer than that.
6 lines
156 B
Ruby
6 lines
156 B
Ruby
ActiveSupport.on_load(:active_storage_blob) do
|
|
ActiveStorage::DiskController.after_action only: :show do
|
|
expires_in 5.minutes, public: true
|
|
end
|
|
end
|