Next.js: Cache Accounting and Smarter Prefetching
The team closed a memory-leak class of bug across multiple in-memory caches by finally counting key length, while a multi-part prefetching refactor lays groundwork for skipping unnecessary runtime requests. Turbopack also picked up several tree-shaking and file-watcher correctness fixes.
Duration: PT2M55S
Episode overview
This episode is a short developer briefing from Next.js.
It explains recent repository work in plain language.
- Show: Next.js
- Published: 2026-07-28T13:12:50Z
- Audio duration: PT2M55S
Transcript excerpt
This excerpt keeps the crawler page concise. Listen to the episode or use the RSS feed for the full update.
Good evening. It's July 28th, and here's what mattered in the Next.js codebase today.
The biggest cross-cutting theme is memory accounting in long-lived servers. Dan Abramov's PR 96229 fixed a bug where the filesystem route cache measured its size budget without counting the URL key itself — meaning long slugs, bot crawls, or high-cardinality routes could quietly balloon memory well past the…
Second theme: prefetching is getting smarter, in stages. Andrew Clark's PR 95964 adds a signal to static prefetch responses indicating whether a runtime request would actually return more data — things like cookies, headers, or search params that only resolve at runtime. PR 96017 follows up by changing prefetch…
Third, Turbopack maintenance: sampoder landed two tree-shaking improvements, PR 96273 and PR 96282, that let the bundler drop more dead code across re-exports and defineProperty patterns. Separately, bgw fixed the file watcher's batching logic in PR 96114 and PR 96186, and a community contribution, PR 96288, fixed…
Also worth noting: React was upgraded again via the automated bot in PR 96270, and Sebastian Silbermann replaced the vendored http-proxy with the faster, actively maintained…
Wh…
Nearby episodes from Next.js
- Turbopack Dev Server Gets Its Correctness Pass
- Weekly Recap - Memory Leaks, Dev Validation, and Turbopack Tree-Shaking
- Long-Lived Servers and the Cost of Free Cache Keys
- Plugging Memory Leaks and Taming V8 Deopts
- TypeScript 7 Fallout and the Turbopack Tree-Shaking Push
- Caching Gets Honest About What's Stale
- Security Patch Wave and Windows Path Fixes
- Taming Instant Validation, and Turbopack's Tree-Shaking Push