req.fresh
Indicates whether the request is “fresh.” It is the opposite of req.stale.
It is true if the cache-control request header doesn’t have a no-cache directive and any of the following are true:
- The
if-modified-sincerequest header is specified andlast-modifiedrequest header is equal to or earlier than themodifiedresponse header. - The
if-none-matchrequest header is*. - The
if-none-matchrequest header, after being parsed into its directives, does not match theetagresponse header.
req.fresh // => true
For more information, issues, or concerns, see fresh.
Please login to continue.