The four caches
Request memoization, the Data Cache, the Full Route Cache, and the Router Cache: what each did, and what replaced it in Next.js 16 with Cache Components.
The four caches
The player loads from youtube-nocookie.com when you press play. Nothing reaches YouTube before that.
Not started
What you'll learn
- The App Router's original caching model had four layers: request memoization, the Data Cache, the Full Route Cache, and the client-side Router Cache.
- Layers differ by where they live and how long they last: request memoization and the Router Cache are short-lived and per request or per browser; the Data Cache and Full Route Cache were server-side and persistent.
- In Next.js 16 fetch is no longer cached by default, and the Data Cache's job moved to use cache entries with a cacheLife.
- With Cache Components the Full Route Cache idea became the prerendered static shell, and the Router Cache became the Client Cache, with a stale time from cacheLife.
- Videos and posts about the four caches describe the Next.js 13 to 15 behavior, so check each claim against the version you run.
Why there is more than one cache
A request for a page passes through several steps: your code fetches data, the server renders a tree, the server sends HTML and a payload, and the browser moves to the next page. Each step can be skipped if you already did it. When people say “Next.js caching”, they usually mean four separate ideas that each skip a different step.
The App Router launched with exactly four, and tutorials still organize around them. Learn the four as a map of the pipeline, then see where each lives in Next.js 16.
The four layers
Request memoization. Skips repeat work inside one render. Two components fetching the same URL cause one request. It lives on the server and dies when the request ends. You met it in the previous lesson.
The Data Cache. Skips repeat work across requests. It stored fetch responses on the server and survived until you revalidated. It was the layer behind { cache: 'force-cache' } and next: { revalidate: 60 }.
The Full Route Cache. Skips rendering. At build time, a route without request-specific work was rendered once and stored as HTML plus an RSC payload. A visit served the stored result.
The Router Cache. Skips the network. It lives in the browser and stores the RSC payload for routes you visited or prefetched, so back and forward, and navigations to prefetched links, reuse it.
| Layer | Where | Skips | Lifetime |
|---|---|---|---|
| Request memoization | Server | repeat call in one render | one request |
| Data Cache | Server | repeat call across requests | until revalidated |
| Full Route Cache | Server | rendering | until revalidated or redeployed |
| Router Cache | Browser | a server round trip | minutes, or until the tab reloads |
What Next.js 16 changed
The four-layer picture kept surprising people, because the defaults cached things nobody had asked for. The current docs describe a different model, enabled with cacheComponents: true, which the project template from create-next-app 16.4 sets for you.
- Request memoization is unchanged.
fetchGET requests with the same URL and options are still memoized per render, andReact.cachecovers other functions. - The Data Cache no longer caches
fetchby default. Instead you mark a function or component withuse cacheand acacheLife. What is stored is the function’s return value, not one HTTP response. The old per-fetch options andunstable_cachelive on in the “previous model” guide for apps that have not enabled Cache Components. Theuse cachereference notes thatunstable_cacheand the fetch cache are the options for data that must persist across deploys, becauseuse cacheentries are keyed by build id. - The Full Route Cache idea is now the prerendered static shell: HTML plus RSC payload, built from whatever can finish at build time, with
<Suspense>fallbacks where dynamic content streams in. That is partial prerendering. - The Router Cache is called the Client Cache in the glossary. The
stalevalue incacheLifecontrols how long a route is reused in the browser, and the client router enforces a minimum stale time of 30 seconds. Calls torevalidateTag,updateTag,revalidatePath,router.refresh, and setting or deleting a cookie invalidate it.
Outside the framework there can also be a CDN cache in front of your server, but that is a hosting concern, not one of the four.
Reading old material
If you read an older tutorial and it says “fetch is cached forever by default”, it is describing Next.js 13 or 14. If it says “fetch is not cached by default but dynamicIO is experimental”, it is Next.js 15. In 16, with Cache Components on, you opt in with use cache. The vocabulary of four layers is still the best map for locating a problem, such as “am I seeing a stale browser payload or a stale server entry?”
What the video covers
Stav’s May 2025 video walks through the four layers with visual flows and code demos. His chapters cover request memoization, the Data Cache (including force-cache versus no-store, time-based revalidation, and cache tags), and the Full Route Cache (what happens during build, and static versus dynamic routes). It teaches the model that came before Cache Components, so use it for the mental map and use this lesson for what changed. Vercel’s own January 2024 walkthrough, linked below, covers Next.js 14 defaults and is older still.
Where this fits
You now have the old map and the new one. Next: Cache Components and use cache, the opt-in model that replaces the implicit one.
Check yourself
Which of the four caches lives in the browser, and what does it hold?
The Router Cache, called the Client Cache in the current docs, holds React Server Component payloads for visited and prefetched routes so client-side navigations can reuse layouts and loading states without a server request.
Why does a single fetch call sit inside more than one cache?
Each layer answers a different question: memoization avoids repeat calls within one render, the Data Cache avoids repeat calls across requests, and the route and client caches avoid redoing the render itself.
What replaced the Data Cache in Next.js 16 when Cache Components is on?
use cache entries with a cacheLife, tagged with cacheTag, which store the return value of a function or component instead of caching individual fetch responses.
Why is an old video about the four caches still useful in 2026?
It explains where each layer sits in the pipeline and what problem it solved, which still helps you read the current model, even though the defaults and function names have changed.
Go deeper
Notes
Notes are saved to your account.
Everything else on this page works without one — progress and bookmarks keep themselves in this browser and come with you when you sign in. Notes are the one thing worth not trusting to a browser you might clear.
Your notes could not be loaded.