mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
This ensures we properly filter caching on uncachable request methods by default and correct encoding handling in edge runtime. Fixes: https://github.com/vercel/next.js/issues/46349 x-ref: [slack thread](https://vercel.slack.com/archives/C042LHPJ1NX/p1677253242022489) ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see [`contributing.md`](https://github.com/vercel/next.js/blob/canary/contributing.md)
18 lines
343 B
JavaScript
18 lines
343 B
JavaScript
export default async function Page() {
|
|
const data = await fetch(
|
|
'https://next-data-api-endpoint.vercel.app/api/utf8-encoding',
|
|
{
|
|
next: {
|
|
revalidate: 3,
|
|
},
|
|
}
|
|
).then((res) => res.text())
|
|
|
|
return (
|
|
<>
|
|
<p id="page">/variable-revalidate/encoding</p>
|
|
<p id="page-data">{data}</p>
|
|
</>
|
|
)
|
|
}
|