2da04af2e8
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
13 lines
236 B
JavaScript
13 lines
236 B
JavaScript
import React from 'react'
|
|
import { Layout } from '../components/layout'
|
|
|
|
export default () => {
|
|
return (
|
|
<Layout>
|
|
<dl>
|
|
<dt>Pathname</dt>
|
|
<dd data-pathname="/pages">/pages</dd>
|
|
</dl>
|
|
</Layout>
|
|
)
|
|
}
|