Cache Components: await configured cache-adapter registration before first render
Author: ask-bonk[bot]Created Sep 29, 2026Updated Sep 29, 2026
Labelsnextjs-tracking
Next.js Change
What changed
Next.js now shares and awaits a single custom-cache-handler registration promise. Startup preloading and concurrent first requests can no longer initialize built-in cache handlers, then render a 'use cache' call before the configured handler finishes loading. Handler-import failures are reported without producing an unhandled rejection.
Impact on vinext
vinext declaratively registers configured cache adapters through its generated runtime module on the first request. It must ensure every request that can reach 'use cache' waits for that registration to settle, including concurrent cold-start requests, rather than falling back to the in-memory default handler.
Acceptance criteria
- Represent configured cache-adapter setup with a shared registration promise.
- Await that promise before serving
'use cache'work on every request path. - Deduplicate concurrent initial registrations and propagate registration failures consistently.
- Preserve configured-handler behavior for the very first request and concurrent cold-start requests.
- Add focused regression coverage using a delayed configured adapter.
Related
- #2110 - dev custom-cache-handler parity
- vercel/next.js#99372 - upstream fix
Source: cloudflare/vinext