From 78eea79845bfd3eaf709549db0a3042676e3c5de Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:42:56 +0000 Subject: [PATCH] Assert current If-Unmodified-Since with If-None-Match 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 bdc6404576..e92fdba1a3 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -553,6 +553,17 @@ async function main() { `Smoke test failed: expected current If-Unmodified-Since status 200, received ${ifUnmodifiedSinceCurrentAsset.status}.`, ); } + const ifUnmodifiedSinceCurrentWithNoneMatch = await fetch(assetUrl, { + headers: { + "If-Unmodified-Since": assetLastModified, + "If-None-Match": assetEtag, + }, + }); + if (ifUnmodifiedSinceCurrentWithNoneMatch.status !== 304) { + throw new Error( + `Smoke test failed: expected current If-Unmodified-Since + If-None-Match status 304, received ${ifUnmodifiedSinceCurrentWithNoneMatch.status}.`, + ); + } const ifMatchPrecedenceAsset = await fetch(assetUrl, { headers: { "If-Match": assetEtag,