1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Clarify expires_now documentation

[ci skip]
This commit is contained in:
Nate Berkopec 2016-08-01 12:31:39 -07:00
parent c205e3fca3
commit 0d1deb31eb

View file

@ -242,8 +242,9 @@ module ActionController
response.date = Time.now unless response.date?
end
# Sets an HTTP 1.1 Cache-Control header of <tt>no-cache</tt> so no caching should
# occur by the browser or intermediate caches (like caching proxy servers).
# Sets an HTTP 1.1 Cache-Control header of <tt>no-cache</tt>. This means the
# resource will be marked as stale, so clients must always revalidate.
# Intermediate/browser caches may still store the asset.
def expires_now
response.cache_control.replace(:no_cache => true)
end