instance method static_cache_control=

Ruby on Rails 5.0.7.2

Since v5.0.7.2 Last seen in v5.0.7.2

Signature

static_cache_control=(value)

No documentation comment.

Parameters

value req
Source
# File railties/lib/rails/application/configuration.rb, line 60
      def static_cache_control=(value)
        ActiveSupport::Deprecation.warn <<-eow.strip_heredoc
          `config.static_cache_control` is deprecated and will be removed in Rails 5.1.
          Please use
          `config.public_file_server.headers = { 'Cache-Control' => '#{value}' }`
          instead.
        eow

        @static_cache_control = value
      end

Defined in railties/lib/rails/application/configuration.rb line 60 · View on GitHub · Improve this page · Find usages on GitHub

Defined in Rails::Application::Configuration

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close