class ActiveStorage::Representations::ProxyController
Proxy files through application. This avoids having a redirect and makes files easier to cache.
def representation
def representation @representation ||= @blob.representation(params[:variation_key]).processed end
def show
def show http_cache_forever public: true do set_content_headers_from representation.image stream representation end end