From 6b20a47021a9a73766776cbf2ff826ebe9ecc06b Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:34:22 +0000 Subject: [PATCH] Assert HEAD wildcard If-Match and If-None-Match behavior Co-authored-by: Theo Browne --- apps/t3/scripts/smoke-test.mjs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index 3d87927e86..1eeb3c8ad6 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -441,6 +441,18 @@ async function main() { `Smoke test failed: expected wildcard If-Match + If-None-Match status 304, received ${ifMatchWildcardWithNoneMatchAsset.status}.`, ); } + const ifMatchWildcardWithNoneMatchHeadAsset = await fetch(assetUrl, { + method: "HEAD", + headers: { + "If-Match": "*", + "If-None-Match": assetEtag, + }, + }); + if (ifMatchWildcardWithNoneMatchHeadAsset.status !== 304) { + throw new Error( + `Smoke test failed: expected HEAD wildcard If-Match + If-None-Match status 304, received ${ifMatchWildcardWithNoneMatchHeadAsset.status}.`, + ); + } const ifMatchMismatchWithNoneMatchAsset = await fetch(assetUrl, { headers: { "If-Match": "\"definitely-different-etag\"",