CacheOptions
import type { CacheOptions } from "https://raw.githubusercontent.com/worker-tools/shed/master/index.ts";
The Cache-Control HTTP header field holds directives (instructions) — in both requests and responses — that control caching in browsers and shared caches (e.g. Proxies, CDNs).
type CacheOptions = [K in keyof CacheControl]: CacheControl[K] extends (number | null | undefined) ? number | Temporal.Duration | null : CacheControl[K];
§Type
§
[K in keyof CacheControl]: CacheControl[K] extends (number | null | undefined) ? number | Temporal.Duration | null : CacheControl[K]
[src]