Next.js 13: fetching

children

Incremental Static Regeneration (ISR)

  • ISR will statically generate pages at build time but bust the cache when the revalidation period is over.
  • Setting up a revalidate option, the page will be revalidated whenever it has been requested after the revalidation period the first time.
  • Try navigating to each post and noting the timestamp of when the page was rendered. Refresh the page after 10 seconds to trigger a revalidation for the next request. Refresh again to see the actual revalidated page.
By