Overview - Revalidation strategies (time-based)
What is it?
Revalidation strategies in Next.js control how often a page or data is refreshed after it is first generated. Time-based revalidation means the page updates automatically after a set time interval. This helps keep content fresh without rebuilding on every request. It balances speed and up-to-date information for users.
Why it matters
Without revalidation, pages might show outdated content or slow down by rebuilding too often. Time-based revalidation solves this by updating pages at regular intervals, so users see fresh data without waiting. This improves user experience and reduces server load, making websites faster and more reliable.
Where it fits
Before learning revalidation, you should understand static site generation and server-side rendering in Next.js. After mastering revalidation, you can explore incremental static regeneration, on-demand revalidation, and caching strategies to optimize performance further.