method
fresh?
v7.2.3 -
Show latest stable
- Class:
ActionDispatch::Http::Cache::Request
fresh?(response)public
Check response freshness (`Last-Modified` and ETag) against request `If-Modified-Since` and `If-None-Match` conditions. If both headers are supplied, both must match, or the request is not considered fresh.