diff --git a/apps/t3/scripts/smoke-test.mjs b/apps/t3/scripts/smoke-test.mjs index 6025caca37..3d38d4a450 100644 --- a/apps/t3/scripts/smoke-test.mjs +++ b/apps/t3/scripts/smoke-test.mjs @@ -419,6 +419,17 @@ async function main() { `Smoke test failed: expected wildcard If-Match status 200, received ${ifMatchWildcardAsset.status}.`, ); } + const ifMatchWildcardRangedAsset = await fetch(assetUrl, { + headers: { + Range: "bytes=0-15", + "If-Match": "*", + }, + }); + if (ifMatchWildcardRangedAsset.status !== 206) { + throw new Error( + `Smoke test failed: expected wildcard If-Match ranged status 206, received ${ifMatchWildcardRangedAsset.status}.`, + ); + } if (ifMatchMismatchAsset.headers.get("etag") !== assetEtag) { throw new Error("Smoke test failed: expected ETag on If-Match mismatch response."); }