Skip to content

Commit c771cb2

Browse files
committed
test(cache): allow existing Pages warm fills
1 parent cb7b54e commit c771cb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/e2e/cloudflare-workers/rsc-prewarm.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ test("deploy-prewarmed App HTML and RSC variants are reused", async ({
225225
expect(pagesResponseHeaders["content-type"]).toContain("text/html");
226226
expect(pagesResponseHeaders["x-vinext-build-id"]).toBe(rscBuildId);
227227
// This layer only probes App Pages. Pages Router keeps its existing
228-
// route-owned cache policy, but is deliberately not prewarmed yet.
228+
// route-owned cache policy. Existing path discovery may already have filled
229+
// this entry, so its current CDN residency is not part of this assertion.
229230
expect(pagesResponseHeaders["cache-control"]).toContain("public");
230-
expect(pagesResponseHeaders["cf-cache-status"]).toBe("MISS");
231231
expect(await pagesResponse.text()).toContain("Pages prewarm target");
232232

233233
const appHtmlResponse = await getResponseAfterPromotion(

0 commit comments

Comments
 (0)