I have a question about the Incremental Static Regeneration. As far as I know the revalidate
value within the getStaticProps()
function tells Next.js the amount of time it should rebuild the pages.
My question about that is, will this happen for every user/request after the set amount of time, or centralized, starting with the first user/request hitting the page?
For example:
Revalidate value in the getStaticProps()
function: 60 seconds
User A hits the page and receives a cached version. After 60 seconds Next.js rebuilds the pages for him and serves the fresh content.
User B hits the page shortly after User A, receives a cached version and after 60 seconds he also receives an updated version.
My concern is that every individual request starts it's own 60-second interval to rebuild.
I'm quite sure that's not the case, but as Next.js is new to me, I wanted to get this straight before messing things up.
I would be very thankful if somebody could volunteer to give a quick response.