From 976ff6fcdf3d7d32a561d17cdfcc9aebeeca9360 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Tue, 10 Feb 2026 01:28:41 +0000 Subject: [PATCH] Assert HEAD cache-control semantics in smoke test Co-authored-by: Theo Browne --- apps/t3/scripts/smoke-test.mjs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index 5c8ef7fe59..25e3d20a2e 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -234,6 +234,13 @@ async function main() { `Smoke test failed: expected HEAD web status 200, received ${headPage.status}.`, ); } + if ((headPage.headers.get("cache-control") ?? "").toLowerCase() !== "no-store") { + throw new Error( + `Smoke test failed: expected HEAD cache-control=no-store, got ${String( + headPage.headers.get("cache-control"), + )}.`, + ); + } const headContentLength = Number(headPage.headers.get("content-length") ?? "0"); if (!Number.isFinite(headContentLength) || headContentLength <= 0) { throw new Error(