CacheControlBase

import { CacheControlBase } from "jsr:@ende/http/unstable-cache-control";

interface ยท experimental

interface CacheControlBase

Directives shared by both request and response Cache-Control headers.

See also

Properties

noStore

noStore?: true

When present, the cache must not store the request or response.

noTransform

noTransform?: true

When present, the cache must not transform the payload.

maxAge

maxAge?: number

Maximum age in seconds. In a request: accept responses whose age is no greater than this. In a response: the response is stale after this many seconds.

staleIfError

staleIfError?: number

Allow use of stale response if revalidation fails (seconds).

Source