method
handle_conditional_get!
v7.1.3.4 -
Show latest stable
- Class:
ActionDispatch::Http::Cache::Response
handle_conditional_get!()private
No documentation available.
# File actionpack/lib/action_dispatch/http/cache.rb, line 173
def handle_conditional_get!
# Normally default cache control setting is handled by ETag
# middleware. But, if an etag is already set, the middleware
# defaults to `no-cache` unless a default `Cache-Control` value is
# previously set. So, set a default one here.
if (etag? || last_modified?) && !self._cache_control
self._cache_control = DEFAULT_CACHE_CONTROL
end
end