#Statically rendered page gets re-rendered every 5 min

1 messages · Page 1 of 1 (latest)

wooden isle
#

I have Nextjs app router that does statically render some pages (the page itself does a lot of data fetching inside)

I put some Math.random values inside the page. When I hard (refresh) navigate to the page, the random number remains the same but with soft navigation (Link component) the random number changes every 5 min.

Interestingly I have some other pages which are statically rendered (but use the generateStaticParams function)... These pages also have a random number that remains the same even on soft navigation after 5 min. These pages also have a ton of data fetches within.

What I don't understand is why the difference in (soft navigation) behavior for statically rendered pages: one with generateStaticParams function and and without???