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: {