Class: ActiveStorage::Blobs::ProxyController
- Inherits:
-
ActiveStorage::BaseController
- Object
- ActiveStorage::BaseController
- ActiveStorage::Blobs::ProxyController
- Includes:
- DisableSession, SetBlob, SetHeaders
- Defined in:
- app/controllers/active_storage/blobs/proxy_controller.rb
Overview
Proxy files through application. This avoids having a redirect and makes files easier to cache.
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
9 10 11 12 13 14 |
# File 'app/controllers/active_storage/blobs/proxy_controller.rb', line 9 def show http_cache_forever public: true do set_content_headers_from @blob stream @blob end end |