What if your site could update itself instantly, only where it needs to?
Why On-demand revalidation in NextJS? - Purpose & Use Cases
Imagine you have a website showing product prices that change often. Every time a price updates, you have to manually refresh the whole site or wait for a scheduled update.
Manually refreshing or waiting for fixed updates means visitors see old prices for a long time. This causes confusion and lost sales because the site is not up-to-date instantly.
On-demand revalidation lets your site update only the changed pages right when you want. It keeps your site fast and fresh without rebuilding everything all the time.
rebuild entire site every hour
trigger revalidation for specific page on data changeYou can instantly update parts of your site when data changes, giving users fresh content without slowing down your whole site.
An online store updates a product price. With on-demand revalidation, only that product page refreshes immediately, so customers always see the latest price.
Manual updates cause delays and stale content.
On-demand revalidation updates only what changed, instantly.
This keeps your site fast and always fresh for users.