CacheControl

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

type alias ยท experimental

type CacheControl = { [K in keyof RequestCacheControl | keyof ResponseCacheControl]?: K extends keyof RequestCacheControl ? K extends keyof ResponseCacheControl ? RequestCacheControl[K] | ResponseCacheControl[K] : RequestCacheControl[K] : K extends keyof ResponseCacheControl ? ResponseCacheControl[K] : never }

Parsed Cache-Control value. Contains all directives from both request and response contexts with the widest applicable types. Returned by parseCacheControl and accepted by formatCacheControl.

Source