method
prepare_cache_control!
v3.2.1 -
Show latest stable
- Class:
ActionDispatch::Http::Cache::Response
prepare_cache_control!()private
No documentation available.
# File actionpack/lib/action_dispatch/http/cache.rb, line 74
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