← Next.js & Shipping
Lesson 3 · triangle Next.js & Shipping
Data Fetching & Caching
Choose a rendering strategy and invalidate on purpose.
Before you start
Three questions decide everything: does this change per user, how stale can it be, and how expensive is it to produce? Static for marketing pages, cached-with-revalidation for content, dynamic for anything user-specific. Getting this right is most of your performance work.
5 exercises·up to 72 XP·5/5 hearts