instance method
handle_conditional_get!
Ruby on Rails 7.2.3
Since v3.0.20 PrivateSignature
handle_conditional_get!()
No documentation comment.
Source
# File actionpack/lib/action_dispatch/http/cache.rb, line 175
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
Defined in actionpack/lib/action_dispatch/http/cache.rb line 175
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionDispatch::Http::Cache::Response