class method
self.new
Ruby on Rails 8.1.2
Since v8.1.2Signature
self.new(cache_control_header)
No documentation comment.
Parameters
-
cache_control_headerreq
Source
# File actionpack/lib/action_dispatch/http/cache.rb, line 75
def initialize(cache_control_header)
@only_if_cached = false
@no_cache = false
@no_store = false
@no_transform = false
@max_age = nil
@max_stale = nil
@min_fresh = nil
@stale_if_error = false
parse_directives(cache_control_header)
end
Defined in actionpack/lib/action_dispatch/http/cache.rb line 75
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Cache::Request::CacheControlDirectives