ISR — Incremental Static Regeneration

Static page that revalidates every 60 seconds. Supports on-demand invalidation via tags.

Page Info

Rendering Strategy
ISR (revalidate: 60s)
Rendered At
2026-11-20T23:16:33.118Z
Fetch Tags
isr-demo, jsonplaceholder
Fetched Post
sunt aut facere repellat provident occaecati excepturi optio reprehenderit

How it works

  • • Uses fetch(url, { next: { revalidate: 60, tags: [...] } })
  • • The timestamp above changes every 60 seconds (background revalidation)
  • • Cache handler extracts tags from the page's x-next-cache-tags header
  • • Calling revalidateTag('isr-demo') invalidates this page + clears CDN
  • • Check /cache-test to trigger revalidation

Cache behavior

Check headers: curl -sI /demos/isr

You should see x-next-cache-tags containingisr-demo and route-level tags. The cache handler maps these to /demos/isr for CDN purging.