next-cache-components

Enable Partial Prerendering in Next.js 16+ with cacheComponents and 'use cache'.

5|1|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/fellipeutaka/leon --skill next-cache-components-fellipeutaka
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: next-cache-components
Source: https://github.com/fellipeutaka/leon/tree/main/skills/next-cache-components
Command: npx skills add https://github.com/fellipeutaka/leon --skill next-cache-components-fellipeutaka

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Cache Components enable Partial Prerendering (PPR) - mix static, cached, and dynamic content in a single route.

Core Features & Use Cases

  • Enable Cache Components to progressively prerender sections of a page.
  • Support static shell, cached data with use cache, and dynamic segments via Suspense, providing a hybrid rendering model for performance.
  • Use cases include building routes that combine fast static wrappers with updatable data.

Quick Start

Install and configure Next.js with cacheComponents enabled, then annotate components with 'use cache' as needed for caching behavior.

Frequently Asked Questions about next-cache-components

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable Partial Prerendering in Next.js to mix static and dynamic content?

Partial Prerendering in Next.js is enabled by activating cacheComponents in next.config.ts and using the 'use cache' directive to combine static shells with dynamic segments via Suspense.

What is the 'use cache' directive in Next.js Cache Components?

The 'use cache' directive in Next.js Cache Components is an annotation that marks components for caching behavior, allowing routes to progressively prerender sections with updatable data alongside static wrappers.

Does Next.js Partial Prerendering require a specific version?

Next.js Partial Prerendering requires version 16 or higher, as it relies on the cacheComponents configuration and related caching APIs to selectively prerender and revalidate page sections.

How do I configure cacheLife and cacheTag for Next.js Cache Components?

Configuring cacheLife and cacheTag involves applying these APIs alongside the 'use cache' directive in Next.js components to control selective revalidation and manage how cached data expires and updates.

When should I use Next.js Cache Components for web performance?

Use Next.js Cache Components for web performance when building routes that combine fast static wrappers with updatable data, requiring a hybrid rendering model with selective revalidation for dynamic content.

Can I combine cached data with dynamic segments on a single Next.js route?

Combining cached data with dynamic segments on a single Next.js route is supported by Partial Prerendering, which mixes a static shell with dynamic content using Suspense boundaries.