vercel-labs avatar

Next Cache Components

Covers Next.js 16's new caching model built around the "use cache" directive, which replaces unstable_cache and enables Partial Prerendering (PPR). You get three content types: static prerendered content, cached async components with cacheLife profiles, and dynamic Suspense boundaries. The skill walks through cacheTag for invalidation, updateTag for same-request updates, and the migration path from the old API. The biggest gotcha is you can't use cookies() or headers() inside cached functions unless you extract them first and pass as arguments, or use the "use cache: private" escape hatch. Useful if you're upgrading to Next 16 or implementing PPR for the first time.

skills.sh installs
218
GitHub stars
183
last updated
Jun 3, 2026

Install

$ npx -y skills add vercel-labs/vercel-plugin --skill next-cache-components --agent claude-code

Installs into .claude/skills of the current project.

Files

Covers Next.js 16's new caching model built around the "use cache" directive, which replaces unstable_cache and enables Partial Prerendering (PPR). You get three content types: static prerendered content, cached async components with cacheLife profiles, and dynamic Suspense boundaries. The skill walks through cacheTag for invalidation, updateTag for same-request updates, and the migration path from the old API. The biggest gotcha is you can't use cookies() or headers() inside cached functions unless you extract them first and pass as arguments, or use the "use cache: private" escape hatch. Useful if you're upgrading to Next 16 or implementing PPR for the first time.

Browse the repository on GitHub

Sponsors

Details

Repository
github.com/vercel-labs/vercel-plugin
Category
Cloud & Infrastructure
First seen
Jun 3, 2026

More from vercel-labs/vercel-plugin

All 32
1vercel-labs avatarjson-render-shadcnvercel-labs/json-renderPre-built shadcn/ui components for json-render. Use when working with @json-render/shadcn, adding standard UI components to a catalog, or building web UIs with 213skills.sh installs
2vercel-labs avatarnext-upgradevercel-labs/vercel-pluginnext upgrade213skills.sh installs
3vercel-labs avatarbootstrapvercel-labs/vercel-pluginbootstrap211skills.sh installs
4vercel-labs avatarmarketplacevercel-labs/vercel-pluginmarketplace208skills.sh installs
5vercel-labs avatarplugin-auditvercel-labs/vercel-pluginplugin audit198skills.sh installs
6vercel-labs avatarbenchmark-agentsvercel-labs/vercel-pluginbenchmark agents197skills.sh installs