Request Memoization
The first Next.js caching tier: identical fetch calls made while rendering one request are run only once.
In more detail
It lasts for a single server render and is never shared between users or requests. It only covers GET fetch calls made during rendering; wrap database or ORM calls in React cache to get the same effect.
Related terms
- React cache — A React function that wraps another function so repeated calls with the same arguments during one server request reuse the first result.
- Data Cache — The second Next.js caching tier: a server-side store of fetch results that persists across requests, users and deployments.
- deduplication — Detecting and discarding repeated copies of the same message or request, usually by remembering identifiers already processed.
- prop drilling — Passing a value through several layers of components that do not use it, just so a deeply nested one can.
Taught in
- Request Memoization: Automatic Deduplication Tiers — Next.js 15 & Modern App Router Architecture
- Data Cache: Cross-Request Persistence & Fetch Tags — Next.js 15 & Modern App Router Architecture