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-since
request header is specified andlast-modified
request header is equal to or earlier than themodified
response header. - The
if-none-match
request header is*
. - The
if-none-match
request header, after being parsed into its directives, does not match theetag
response header.
req.fresh // => true
For more information, issues, or concerns, see fresh.
Please login to continue.