instance method
prepare_cache_control!
Ruby on Rails 3.1.12
Since v3.1.12 PrivateSignature
prepare_cache_control!()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/http/cache.rb, line 66
def prepare_cache_control!
@cache_control = {}
@etag = self["ETag"]
if cache_control = self["Cache-Control"]
cache_control.split(/,\s*/).each do |segment|
first, last = segment.split("=")
@cache_control[first.to_sym] = last || true
end
end
end
Defined in actionpack/lib/action_dispatch/http/cache.rb line 66
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Cache::Response