rails/activestorage/app/controllers
Joé Dupuis f7ecde8331
Expire caching when a download fail while proxying in ActiveStorage
Fix #51284

Both Proxy controllers in Active Storage set the caching headers early
before streaming.

In some instances (see #51284), it is possible for the file
download (from the service to server) to fail before we send the first
byte to the client (response not yet committed).

In those instances, this change would invalidate the cache and return
a better response status before closing the stream.
2024-06-17 09:49:11 -07:00
..
active_storage Fix AS:Representations::ProxyController returning the wrong preview 2023-11-21 21:00:35 +01:00
concerns/active_storage Expire caching when a download fail while proxying in ActiveStorage 2024-06-17 09:49:11 -07:00