rails/activestorage/test/controllers/representations
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
..
proxy_controller_test.rb Expire caching when a download fail while proxying in ActiveStorage 2024-06-17 09:49:11 -07:00
redirect_controller_test.rb Fix strict loading for Active Storage previews 2023-11-13 10:58:50 -06:00