Overview - Revalidation patterns
What is it?
Revalidation patterns in Next.js are ways to keep your web pages fresh by updating their data after they are initially built. They let your app show new information without rebuilding everything all the time. This helps balance fast loading with up-to-date content. Revalidation can happen automatically or on demand, depending on the pattern used.
Why it matters
Without revalidation, your website might show old information for a long time, frustrating users who expect fresh content. On the other hand, rebuilding pages on every request can slow down your site and increase server costs. Revalidation patterns solve this by updating pages smartly, so users get fast access to mostly static pages that refresh in the background or when needed.
Where it fits
Before learning revalidation patterns, you should understand Next.js basics like static generation and server-side rendering. After mastering revalidation, you can explore advanced data fetching strategies, incremental static regeneration, and server actions to build highly dynamic and performant apps.