Next.js Discord

Discord Forum

SPA Links going 404 due to old Build Id attached

Unanswered
Japanese pilchard posted this in #help-forum
Open in Discord
Japanese pilchardOP
SPA's internal link (generated through Link tag), contains build id.
In this case our pages is cached, then its internal link is also getting cached.
When we are pushing our new changes, with new build id, then SPA link through previous build id is going 404.
How to resolve this issue?
Sample link: <domain>/_next/data/<buildId>/test/mask.html.json?pname=mask.html

0 Replies