Sha256: 0586201e2753f8d50baa9151ccd41693954a73353e2ebf3880c42905faba08d3
Contents?: true
Size: 419 Bytes
Versions: 24
Compression:
Stored size: 419 Bytes
Contents
# frozen_string_literal: true # Proxy files through application. This avoids having a redirect and makes files easier to cache. class ActiveStorage::Representations::ProxyController < ActiveStorage::Representations::BaseController include ActiveStorage::SetHeaders def show http_cache_forever public: true do set_content_headers_from @representation.image stream @representation end end end
Version data entries
24 entries across 24 versions & 4 rubygems