Next.js Discord

Discord Forum

NextJS + Shopify Storefront API caching bug?

Unanswered
aymen posted this in #help-forum
Open in Discord
Hey guys,

I've been trying to understand what's going on for 2 days but I just can't seem to fix it. Everytime I add or delete a product from my Homepage collection, it is not being reflected on the index page... unless I change the 'Cache-Content' option in the headers, but then it will only refresh it once. It seems like the fetch call is being cached somehow, even if Cache-Content is set to 'no-store'?
Could anyone please have a look and tell me what is going on and how to fix it?
Thank you so much!
Repo: https://github.com/whoisaymen/frizbee-ceramics

0 Replies