Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 4da17bb

Browse files
committed
Unexport parseETag
1 parent 932b537 commit 4da17bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cache/src/cache.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,9 @@ function getExpirationTtl(
112112

113113
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag#syntax
114114
const etagRegexp = /^(W\/)?"(.+)"$/;
115-
export function parseETag(value: string): string | undefined {
116-
// As we only use this for `If-None-Match` handling, which always use the weak
117-
// comparison algorithm, ignore "W/" directives:
115+
function parseETag(value: string): string | undefined {
116+
// As we only use this for `If-None-Match` handling, which always uses the
117+
// weak comparison algorithm, ignore "W/" directives:
118118
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-None-Match
119119
return etagRegexp.exec(value.trim())?.[2] ?? undefined;
120120
}

0 commit comments

Comments
 (0)