Next.js 16+ · Option
cacheComponents
Cache Components enables function- and component-level caching in the Next.js App Router. It also provides a static shell, streamed dynamic content, and preserved UI state during some client navigations.
Last updated
- Since
- 16.0.0
Syntax
const nextConfig: NextConfig = {
cacheComponents: true,
partialPrefetching: true,
}In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
use cachecacheLifecacheTagpartialPrefetchingPartial Prerendering (PPR)RevalidatingPreserving UI state