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

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

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.

Parameters

request: Request
etag: string | null | undefined

Returns

etag is string