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>generateETag

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

Create a simple ETag.

Parameters

entity: ETaggable

Either a string, ArrayBuffer. If working with JSON, run the value through JSON.stringify first.

optional
options: EntityToETagOptions

See EntityToETagOptions

Returns

Promise<string>