Files
Jiachi LiuandGitHub b7f5107544 Fix: respect init.cache if fetch input is request instance (#60821)
When there’s a request input instance and init object present the same
time, we should respect init as preferred

Closes NEXT-2149
2024-01-18 17:54:36 +01:00

13 lines
230 B
JavaScript

export default async function Page() {
await fetch(
new Request(
'https://next-data-api-endpoint.vercel.app/api/random?request-input'
),
{
cache: 'no-store',
}
)
return <div>Hello World!</div>
}