QuickDevGuide

Home › Next.js

Caching & Revalidation — Next.js

Next.js has a multi-layered caching system designed to maximize performance. Understanding these layers helps you control data freshness. Caching Layers Layer Where What Duration Router Cache Browser Prefetched routes Session Full Route Cache Server Rendered HTML + RSC payload Until revalidation Data Cache Server fetch() responses Persistent Request Memoization Server Duplicate fetch() calls in one render Per-request Controlling Cache with fetch() On-Demand Revalidation Route Segment Config Opting Out of Caching

Key Takeaways