Make active storage blobs cacheable
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
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
|
||||
Reference in New Issue
Block a user