๐Ÿ”ฎ Sanity Create is here. Writing is reinvented. Try now, no developer setup

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?