nextjs-caching
Installation
SKILL.md
Next.js Caching
Expert guidance on Next.js caching mechanisms, ISR patterns, and common pitfalls.
Core Concepts
"use cache" Directive
Mark components or functions as cacheable. The directive does not cache immediately—it marks the output for caching at build time.
"use cache"
export default function MyComponent() {
// Output cached at build time
}
When applied to a page's main component, creates ISR-like behavior where the entire output is cached (no partial caching).