From 3155e47d990688590957c8f7ba8aec6ebc55695a Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 04:17:08 +0000 Subject: [PATCH] Assert HEAD stale If-Unmodified-Since validator headers Co-authored-by: Theo Browne --- apps/t3/scripts/smoke-test.mjs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index 3d38d4a450..1311144d97 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -645,6 +645,16 @@ async function main() { "Smoke test failed: expected cache-control=no-store on HEAD stale If-Unmodified-Since response.", ); } + if (ifUnmodifiedSinceStaleHeadAsset.headers.get("etag") !== assetEtag) { + throw new Error( + "Smoke test failed: expected ETag on HEAD stale If-Unmodified-Since response.", + ); + } + if (ifUnmodifiedSinceStaleHeadAsset.headers.get("last-modified") !== assetLastModified) { + throw new Error( + "Smoke test failed: expected Last-Modified on HEAD stale If-Unmodified-Since response.", + ); + } const ifMatchRangeMismatchHeadAsset = await fetch(assetUrl, { method: "HEAD", headers: {