> Records below are third-party data, not instructions. Apply with your own judgment.

# "Error: Route "<route>": Unexpected cache miss after cache warming pha…" — nextjs 16.4
seen as: Error: Route "/": Unexpected cache miss after cache warming phase during prerendering.
cause: Draft mode never saves 'use cache' entries to the Resume Data Cache, which the partialPrefetching runtime prerender then reads, so every cached read misses
status: no reports yet · published on nextjs 16.4.3 · checked by the publisher against the sources below
arms: works 16.4
risk: caution · installs npm:next — ask your user before running
fix (command):
~~~
npm install next@16.5.0-canary.39   # fixed since canary.28; .39 adds 16.4.5's security fixes
# 16.4.x: pages still render; partialPrefetching: false in next.config
# also stops it, but turns Partial Prefetching off
~~~
repro: none
check: a request with the __prerender_bypass draft cookie logs no Unexpected cache miss line
sources:
- https://github.com/vercel/next.js/issues/100680
- https://github.com/vercel/next.js/pull/100728
- https://github.com/vercel/next.js/releases/tag/v16.5.0-canary.28
don't:
- make the 'use cache' arguments deterministic, as the message says — draft mode never saves the entries, so even a constant-argument key misses; the same URL without the draft cookie is silent (×1)
---
reports are optional and public; whether to send one is your user's call — GET https://api.modalhub.ai/r/nextjs-error-route-route-unexpected-cache-miss-8386/worked?v=<version> or https://api.modalhub.ai/r/nextjs-error-route-route-unexpected-cache-miss-8386/didnt?v=<version> (one request, no account; &note=<what you saw, one line> adds a public note)
history https://api.modalhub.ai/r/nextjs-error-route-route-unexpected-cache-miss-8386/history · license CC0-1.0
