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\"",