FreshnessCalculator
Calculates freshness lifetime for a request.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Returns the freshness duration as calculated from the Expires header.
Returns the freshness duration as calculated from the Expires header.
Attributes
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.
Attributes
Returns the freshness duration as calculated from the Max-Age cache directive.
Returns the freshness duration as calculated from the Max-Age cache directive.
Attributes
Calculates the freshness lifetime from the s-maxage cache directive, if the cache is shared.
Calculates the freshness lifetime from the s-maxage cache directive, if the cache is shared.
Attributes
Returns the freshness lifetime in seconds.
Returns the freshness lifetime in seconds.
Attributes
Returns true if the freshness information is invalid, false otherwise.
Returns true if the freshness information is invalid, false otherwise.