Next.js Data Fetching & Cache Strategy
Plan data fetching and caching for App Router routes with explicit freshness requirements.
When to Use
- •Designing new data-heavy pages
- •Choosing between SSR, SSG, and ISR
Inputs
- •Data freshness needs
- •User personalization requirements
- •Revalidation and cache tagging strategy
Instructions
- •Decide per-route caching (
no-storevsrevalidate). - •Use server-side fetching to avoid client waterfalls.
- •Use tags and on-demand revalidation where needed.
- •Document cache decisions and staleness tolerance.
Output
- •Clear cache and fetch strategy for the route.