instance method
static_cache_control=
Ruby on Rails 5.0.7.2
Since v5.0.7.2 Last seen in v5.0.7.2Signature
static_cache_control=(value)
No documentation comment.
Parameters
-
valuereq
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