silverwolf-x's picture
download
raw
768 Bytes
import { fetchRetry } from '../../../lib/fetch-retry'
export default async function Page() {
const data = await fetchRetry(
'https://next-data-api-endpoint.vercel.app/api/random',
{
headers: new Headers({
'x-hello': 'world',
}),
next: {
revalidate: false,
},
}
).then((res) => res.text())
const data2 = await fetchRetry(
'https://next-data-api-endpoint.vercel.app/api/random',
{
headers: new Headers({
'x-hello': 'again',
}),
next: {
revalidate: false,
},
}
).then((res) => res.text())
return (
<>
<p id="page">/variable-revalidate/post-method-cached</p>
<p id="page-data">{data}</p>
<p id="page-data2">{data2}</p>
</>
)
}

Xet Storage Details

Size:
768 Bytes
·
Xet hash:
ae31dc1efe50ef574ead8defb591bfca4c2e9ddb52289af6fc89b1f5678275c4

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.