Menu

Next.js 16.4: Cache Components, ensureStatic and a Security Patch You Shouldn't Skip
📰

Next.js 16.4: Cache Components, ensureStatic and a Security Patch You Shouldn't Skip

DEV Community: nextjs·TechInnoLab·13 days ago
#MhKlQPtQ
#devtonextjs#devto#dev#next#cache
Long article (1021 words) — no AI summary yet.
Reading 0:00
15s threshold

Next.js 16.4 landed on October 6, 2026, and it's the release where the Next.js team finally says it out loud: Cache Components is now the recommended model for every Next.js app. New projects created with create-next-app get it turned on by default, and it's set to become the default in Next.js 17.

If you skipped the last few 16.x releases or you're still on the old implicit caching behaviour, this is the version worth paying attention to. Below I go through what changed, which features I think matter most for real projects, and how to upgrade safely, including the security patch you should not skip.

Next.js 16.4 at a glance

Cache Components recommended for all apps and enabled by default in new projects

ensureStatic to guarantee a route stays static

navigation() and prefetch() to control what loads during a prefetch

next upgrade --agent for agent-driven upgrades

Turbopack improvements: 20–25% smaller disk cache, lazy server HMR, a shared runtime chunk and smaller production bundles

React 19.3 with…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.