Next.js Discord

Discord Forum

Client refresh of revalidated static page

Unanswered
Eric Burel posted this in #help-forum
Open in Discord
Hi folks, I have a static page with revalidation every 10 second. Is there a way to have Next to check if there is a new version of the page when the tab is focused again ? For instance if I leave the page open all night and come back, I still get the version I initially loaded. I thought that Next would do a background check to look for an update (SWR does that for instance on tab focus) but it doesn't

2 Replies

Seems there is a revalidator component shown in the deep dive article https://github.com/vercel/next.js/discussions/54075
Probably smth we'd want to enable out if the box but I think it will do