RequestCacheControl
import { RequestCacheControl } from "jsr:@ende/http/unstable-cache-control";interface ยท experimental
interface RequestCacheControl extends CacheControlBaseCache-Control directives for requests (e.g. from a client).
See also
Properties
noCache
noCache?: trueWhen present, the cache must not use a stored response without revalidation.
maxStale
maxStale?: number | trueAccept stale responses. If a number, accept responses that have been stale
for no more than this many seconds. If true, accept any staleness.
minFresh
minFresh?: numberRequire the response to be fresh for at least this many seconds.
onlyIfCached
onlyIfCached?: trueOnly return a cached response; do not forward the request to the origin.