Remove and unset the pass flag.
Remove and unset the SWR (stale-while-revalidate) from the CacheOverride that would have been added to a Request
.
Remove and unset the TTL from the CacheOverride that would have been added to a Request
.
Get the SWR (stale-while-revalidate) set on the CacheOverride that would be added to a Request
.
The SWR value (SWR is in seconds).
Get the TTL (Time To Live) set on the CacheOverride that would be added to a Request
.
The TTL value (TTL is in seconds).
Returns true
if the pass is currently set.
true if the pass is enabled, false if not.
Returns true
if the SWR (stale-while-revalidate) is currently set.
true if a SWR exists, false if not.
Returns true
if the TTL (Time To Live) is currently set.
true if a TTL exists, false if not.
Enable the pass flag on the cache override.
Set the SWR (stale-while-revalidate) on the CacheOverride which will be added to a Request
.
SWR value in seconds
Set the TTL (Time To Live) on the CacheOverride that would be added to a Request
.
the TTL to set in seconds.
Generated using TypeDoc
CacheOverride configures the caching behavior of a
Response
. Normally, the HTTP Headers on a Response would control how the Response is cached, but CacheOverride can be set on aRequest
, to override the fufilled Response Headers, and define custom caching behavior.