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