Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

CacheOptions

import type { CacheOptions } from "https://raw.githubusercontent.com/worker-tools/middleware/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]