Sha256: 8477746b368c88013eebd5392dd72a751dabe5e077920f8db0ba49141fd284ea

Contents?: true

Size: 399 Bytes

Versions: 33

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

# Proxy files through application. This avoids having a redirect and makes files easier to cache.
class ActiveStorage::Blobs::ProxyController < ActiveStorage::BaseController
  include ActiveStorage::SetBlob
  include ActiveStorage::SetHeaders

  def show
    http_cache_forever public: true do
      set_content_headers_from @blob
      stream @blob
    end
  end
end

Version data entries

33 entries across 33 versions & 4 rubygems

Version Path
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activestorage-6.1.6.1/app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.7.6 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.7.5 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.7.4 app/controllers/active_storage/blobs/proxy_controller.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activestorage-6.1.6.1/app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.7.3 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.7.2 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.7.1 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.7 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.6.1 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.6 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.5.1 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.5 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.4.7 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.4.6 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.4.5 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.4.4 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.4.3 app/controllers/active_storage/blobs/proxy_controller.rb
activestorage-6.1.4.2 app/controllers/active_storage/blobs/proxy_controller.rb
date_n_time_picker_activeadmin-0.1.2 vendor/bundle/ruby/2.6.0/gems/activestorage-6.1.4.1/app/controllers/active_storage/blobs/proxy_controller.rb