Returns the freshness duration as calculated from the Expires header.
Returns the freshness duration as calculated from the Expires header.
https://tools.ietf.org/html/rfc7234#section-4.2.1
Returns the freshness lifetime from heuristics, or None if the response is stale.
Returns the freshness lifetime from heuristics, or None if the response is stale.
https://tools.ietf.org/html/rfc7234#section-4.2.2
Returns the freshness duration as calculated from the Max-Age cache directive.
Returns the freshness duration as calculated from the Max-Age cache directive.
https://tools.ietf.org/html/rfc7234#section-4.2.1
Calculates the freshness lifetime from the s-maxage cache directive, if the cache is shared.
Returns the freshness lifetime in seconds.
Returns the freshness lifetime in seconds.
https://tools.ietf.org/html/rfc7234#section-4.2.1
Returns true if the freshness information is invalid, false otherwise.
Calculates freshness lifetime for a request.