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(