Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/keywork/http/headers/caching/mod.ts>createCacheControlHeader

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Latest
function createCacheControlHeader
import { createCacheControlHeader } from "https://deno.land/x/keywork@v6.2.1/http/headers/caching/mod.ts";

Creates a Cache-Control header from the given object. Generally, this is an internal function, but it may prove useful in unusual circumstances.

See Keywork#HTTP#Response.CachableResponse | CachableResponse

Parameters

options: Partial<CacheControlDirectives> | undefined