πŸ‘€ Our most exciting product launch yet πŸš€ Join us May 8th for Sanity Connect

Issue with slug paths not updating in Next.js application due to caching.

3 replies
Last updated: Apr 9, 2024
Hey channel, I recently amended and published a new product slug in my Sanity project. In my Next.js application, I query my products and get the slug names when rendering the products with a link to their pages. When I click a link on a product the slug path still shows the previous version. Is there a step I have missed ?
Apr 9, 2024, 6:24 PM
How are you revalidating your data? Have you triggered a new build?
Apr 9, 2024, 6:31 PM
Hi
user M
, Thanks for your response. I was just quitting out of my terminal and restarting it, I have discovered though It was because the requests were cached. I have disabled caching in the network tab and thats resolved things πŸ‘
Apr 9, 2024, 6:38 PM
Great!
Apr 9, 2024, 6:39 PM

Sanity– build remarkable experiences at scale

Sanity is a modern headless CMS that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Was this answer helpful?