What problem does it solve?
This skill solves the challenge of delivering fast, hybrid-rendered Next.js pages by enabling Partial Prerendering (PPR) that blends static, cached, and dynamic content in a single route.
Core Features & Use Cases
- Static (Auto-Prerendered): content rendered at build time for instant delivery.
- Cached (use cache): asynchronous data that can be reused across requests with configurable lifetimes.
- Dynamic (Suspense): runtime data that requires fresh fetches and can stream with a fallback UI.
- Fine-grained invalidation: cacheTag and updateTag enable targeted, immediate or background cache refresh.
- Flexible keying: cache keys derive from function location, arguments, and outer scope to ensure correct cache isolation.
- Practical workflows: ideal for dashboards, blogs, and data-heavy routes that need a blend of speed and freshness.
Quick Start
Enable cache components in your Next.js config and annotate your components or data-fetching functions with the use cache directive to start caching.