Next.js Caching Layers
- Request Memoization — deduplicates identical
fetch()calls in one render tree - Data Cache — persists fetch results across requests and deployments
- Full Route Cache — caches rendered HTML & RSC payloads at build time
- Router Cache — client-side cache of visited route segments
Revalidation Options
- Time-based:
next: { revalidate: 60 } - On-demand:
revalidatePath()andrevalidateTag()in Server Actions