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

std/http/util.ts>compareEtag

Deno standard library
Go to Latest
The Standard Library has been moved to JSR. See the blog post for details.
function compareEtag
import { compareEtag } from "https://deno.land/std@0.174.0/http/util.ts";

Returns true if the etags match. Weak etag comparisons are handled.

Parameters

a: string
b: string

Returns

boolean