Next.js Discord

Discord Forum

what happens if the user tries to navigate to a page that was just "replaced" by a new build

Southeastern blueberry bee posted this in #help-forum
Open in Discord
Southeastern blueberry beeOP
I have an app that works as a PWA with service worker with cache first strategy, so the user always gets a stale page on the first visit.
Say for example I just finished a build and an user is on the stale page, and then they try to visit a new page (which is not cached), will the request error out because the assets paths have changed, or will it gracefully fetch the newest page assets? (With page assets I mean the css, JavaScript etc...)

0 Replies