This method is deprecated or moved on the latest stable version.
The last existing version (v2.3.8) is shown here.
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.
# File actionpack/lib/action_controller/request.rb, line 136
def fresh?(response)
case
when if_modified_since && if_none_match
not_modified?(response.last_modified) && etag_matches?(response.etag)
when if_modified_since
not_modified?(response.last_modified)
when if_none_match
etag_matches?(response.etag)
else
false
end
end