Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

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

A library for building V8 Isolate web apps on Cloudflare Workers, Deno, and Node.JS
Go to Latest
import * as keywork from "https://deno.land/x/keywork@v6.0.1/http/headers/caching/mod.ts";

Utilities for managing ETags and caching.

Variables

Precomputed etag for an empty entity.

Wraps JSON.stringify to ensure that JSON pretty printing doesn't influence ETag generation.

Functions

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

Create a simple ETag.

Utility function to check if a given request's headers match an etag. If the etag matches, the client may use the locally cache resource.

Interfaces

Directives for the Cache-Control header.

Type Aliases

Response headers with Cache-Control.

Types that can be converted into ETags.