Caches the response, stripping any headers marked as "not-cacheable".
Calculates the current age of the stored response.
Calculates the current age of the stored response.
Calculates the current age of the stored response.
Calculates the secondary keys of the request.
Calculates the time to live.
Calculates the time to live. Currently hardcoded to 24 hours.
Generates a response for the HTTP response with the appropriate headers.
Gets the effective URI of the response.
Gets the effective URI of the response.
Invalidates the effective request URI if the method is unsafe.
Invalidates the key.
Cache is not shared.
Cache is not shared.
Strips headers using a strip headers cache-control calculator.
Strips headers using a strip headers cache-control calculator.
Central HTTP cache. This keeps a cache of HTTP responses according to https://tools.ietf.org/html/rfc7234#section-2
The primary cache key consists of the request method and target URI. However, since HTTP caches in common use today are typically limited to caching responses to GET, many caches simply decline other methods and use only the URI as the primary cache key.