Skip to content
masterclass Buddy

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.

Subscribe
  • use cache
  • cacheLife
  • cacheTag
  • partialPrefetching
  • Partial Prerendering (PPR)
  • Revalidating
  • Preserving UI state

Source: cacheComponents. Checked 2026-11-03.