Next.js ISR and Revalidation
Add incremental static regeneration with explicit revalidation and cache tags.
When to Use
- •Pages that can tolerate stale content
- •Performance-sensitive routes
Inputs
- •Route segment
- •Revalidation interval or tags
- •Cache invalidation triggers
Instructions
- •Use
revalidateoptions on server fetches. - •Add
revalidatePathorrevalidateTagwhere needed. - •Ensure cache strategy is explicit and documented.
- •Document stale content tolerance per route.
Output
- •ISR-enabled route with revalidation and cache-tag strategy.