import { fetchCached, getCachedData } from './data-fetching' export default async function Page() { return (

Warmup Dev Renders

In Dev when cacheComponents is enabled requests are preceded by a cache warming prerender. Without PPR this prerender only includes up to the nearest Loading boundary (loading.tsx) and will never include the Page itself. When PPR is enabled it will include everything that is prerenderable including the page if appropriate.

) } async function CachedFetchingComponent() { const data = await fetchCached( 'https://next-data-api-endpoint.vercel.app/api/random?key=cachedpage' ) console.log('after cached page fetch') return (
Cached Fetch (https://next-data-api-endpoint.vercel.app/api/random?key=cachedpage)
{data}
) } async function FetchingComponent() { const response = await fetch( 'https://next-data-api-endpoint.vercel.app/api/random?key=uncachedpage' ) console.log('after uncached page fetch') const data = await response.text() return (
Uncached Fetch (https://next-data-api-endpoint.vercel.app/api/random?key=uncachedpage)
{data}
) } async function CachedDataComponent() { const data = await getCachedData('page') console.log('after page cache read') return (
Cached Data (Page)
{data}
) }