From 262d5088f82fa4fa58b60a567a0d50add5706c97 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 03:44:05 +0000 Subject: [PATCH] Assert If-Match precedence over If-Unmodified-Since Co-authored-by: Theo Browne --- apps/t3/scripts/smoke-test.mjs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index 455603fc57..9f80065010 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -384,6 +384,17 @@ async function main() { `Smoke test failed: expected current If-Unmodified-Since status 200, received ${ifUnmodifiedSinceCurrentAsset.status}.`, ); } + const ifMatchPrecedenceAsset = await fetch(assetUrl, { + headers: { + "If-Match": assetEtag, + "If-Unmodified-Since": staleUnmodifiedSince, + }, + }); + if (ifMatchPrecedenceAsset.status !== 200) { + throw new Error( + `Smoke test failed: expected If-Match precedence status 200, received ${ifMatchPrecedenceAsset.status}.`, + ); + } const conditionalHeadAsset = await fetch(assetUrl, { method: "HEAD", headers: {