method
set_conditional_cache_control!
v2.2.1 -
Show latest stable
- Class:
ActionController::AbstractResponse
set_conditional_cache_control!()private
No documentation available.
# File actionpack/lib/action_controller/response.rb, line 164
def set_conditional_cache_control!
if headers['Cache-Control'] == DEFAULT_HEADERS['Cache-Control']
headers['Cache-Control'] = 'private, max-age=0, must-revalidate'
end
end