Optional
activeSpecify specific cache(s) to use
Optional
cacheOptional
defaultThese settings are applied if the respective headers are not set on the cached response.
Optional
equalDefault is a structureClone comparison method
Optional
forcedThese settings overwrite the respective response headers.
Specify the cache key for this particular request
Optional
modeDefault: "cacheControl", i.e. evaluate response headers to determine max cache time etc., and try to read from cache first before sending any request to the server.
Optional
tableSpecify a table name for the request; if none specified, a default is used. This can be used to separate requests of different kinds.
Optional
updateProvide an updated fetched value later if a cached result is returned. Note that if the cache is fresh this will not trigger and return a failed promise. In order to force trigger it, provide a forcedCachControl: {maxAge: 0} argument as well (or no-cache directive?). If the no-cache directive is set (always revalidate before re-use cached values) the returned promise will always fail as well.
Configuration for requests with caching enabled