Interface CacheControlValue
Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:66
Interface of a parsed Cache-Control header value.
Properties
immutable?
optional immutable?: boolean;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:68
Indicates the response will never change; parsed but not currently used by this cache policy's expiration logic.
max-age?
optional max-age?: number;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:70
Seconds since the response's Date that it is considered fresh; combined with the Age header to determine expiration.
must-revalidate?
optional must-revalidate?: boolean;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:72
Indicates a stale response must be revalidated before use; parsed but not currently used by this cache policy's expiration logic.
must-understand?
optional must-understand?: boolean;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:74
Indicates the client must understand the response's status code semantics before caching; parsed but not currently used by this cache policy's expiration logic.
no-cache?
optional no-cache?: boolean;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:76
Indicates the response must be revalidated before being reused from cache; parsed but not currently used by this cache policy's expiration logic.
no-store?
optional no-store?: boolean;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:78
Indicates the response must not be stored in any cache; parsed but not currently used by this cache policy's expiration logic.
no-transform?
optional no-transform?: boolean;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:80
Indicates the response must not be transformed by intermediaries; parsed but not currently used by this cache policy's expiration logic.
only-if-cached?
optional only-if-cached?: boolean;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:82
Indicates only an already-cached response should be used; parsed but not currently used by this cache policy's expiration logic.
private?
optional private?: boolean;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:84
Indicates the response is intended for a single user and should not be stored by shared caches; parsed but not currently used by this cache policy's expiration logic.
proxy-revalidate?
optional proxy-revalidate?: boolean;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:86
Like must-revalidate but only for shared caches; parsed but not currently used by this cache policy's expiration logic.
public?
optional public?: boolean;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:88
Indicates the response may be stored by any cache; parsed but not currently used by this cache policy's expiration logic.
s-maxage?
optional s-maxage?: number;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:90
Seconds since the response's Date that it is considered fresh for shared caches; used as a fallback for max-age when determining expiration.
stale-if-error?
optional stale-if-error?: number;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:92
Seconds a stale response may be reused if an error occurs while revalidating; parsed but not currently used by this cache policy's expiration logic.
stale-while-revalidate?
optional stale-while-revalidate?: number;Defined in: warp-drive-packages/core/src/store/-private/default-cache-policy.ts:94
Seconds a stale response may be reused while a revalidation happens in the background; parsed but not currently used by this cache policy's expiration logic.