Next.js Discord

Discord Forum

Bust cache after adding query param?

Giant panda posted this in #help-forum
Open in Discord
Giant pandaOP
Hey there - using the app router, I have a link to a /categories page deployed. In my most recent deployment, I added a query param to that link - /categories?type=certified

However, users who have visited that page before now get a 500 error. When they refresh, it works fine at that point. I suspect its the users router cache maybe? Is there a way to bust the cache for just this link? The page is statically rendered.

1 Reply

Great Knot
If you deployed on Vercel, go to project settings, there is a section where you can purge cache. Hope this helps.