rsnext/test/e2e/app-dir/ppr-full
Wyatt Johnson 2da04af2e8
Partial Pre Rendering Headers (#59447)
This fixes some of headers (and adds associated tests) for pages when
PPR is enabled. Namely, the `Cache-Control` headers are now returning
correctly, reflecting the non-cachability of some requests:

- Requests that postpone (dynamic data is streamed after the initial
static shell is streamed)
- Requests for the Dynamic RSC payload

Additionally, the `X-NextJS-Cache` header has been updated for better
support for PPR:

- Requests that postpone no longer return this header as it doesn't
reflect the cache state of the request (because it streams)
- Requests for the Prefetch RSC now returns the correct cache headers
depending on the segment and pre-postpone state

This also enables the other pathnames in the test suites 🙌🏻 

Closes NEXT-1840
2023-12-14 13:14:06 -07:00
..
app Partial Pre Rendering Headers (#59447) 2023-12-14 13:14:06 -07:00
components Partial Pre Rendering Headers (#59447) 2023-12-14 13:14:06 -07:00
pages Partial Pre Rendering Headers (#59447) 2023-12-14 13:14:06 -07:00
next.config.js add full PPR e2e tests (#59025) 2023-11-29 11:34:01 -08:00
ppr-full.test.ts Partial Pre Rendering Headers (#59447) 2023-12-14 13:14:06 -07:00