Next.js 16.4: component caching by default and a guard for static e-commerce pages
The new Next.js recommends Cache Components for every app and adds ensureStatic — the build fails if dynamic content slips into a static store page.

Image: Vercel / Next.js
Next.js 16.4 shipped on 6 October. For online stores and marketing sites it's one of the most practical releases of the year.
Key points
- Cache Components become the standard. Component-level caching (
'use cache') is now recommended for every app, new projects get it enabled, and it becomes the default behaviour in Next.js 17. ensureStatic— a new route option: if dynamic content accidentally slips into a page that should be static, the build fails. The Next.js team names the use cases explicitly: stores, marketing pages and blogs.- Controlled prefetching: new APIs let you decide what gets loaded ahead of time when a link is hovered — less load on the server.
- Upgrades with an AI agent:
next upgrade --agenthands the upgrade to a coding agent and reminds teams about security updates. - Turbopack produces smaller production bundles and a 20–25% more compact disk cache. It ships with React 19.3 and stable View Transitions.
Separately, on 14 October Next.js released an out-of-band security update fixing two critical vulnerabilities.
What it means for business
Category and product pages can be guaranteed to be served as static pages from a CDN: faster loads, better Core Web Vitals, lower server costs. And ensureStatic protects against a page quietly becoming dynamic — and slow — after the next release.
If your store runs on Next.js, plan the upgrade: both for speed and because of the monthly security fixes.
