Storefront API response cached

TheDeadZone
New Member
3 0 1

For a customer of us we are retrieving collections via the Storefront GraphQL API. On the browser of users that have not yet visited the website, they receive the latest data. While if you have visited the website before, it shows old collection information. Even though you use Incognito, it still shows the same data. This kinda gives the feeling like there is some caching layer in between that shows the incorrect information. Does anyone know if something like this is in place and if you can reset it? 

Thanks in advance!

Replies 2 (2)
evvvritt
New Member
2 0 0

I am having the same issue. Response is up to date in Insomnia (a graphQL explorer) but seemingly cached in my chromium browser. Even if I copy the query and variables of the request in my browser into the explorer, the explorer shows the newer response...

TheDeadZone
New Member
3 0 1

Eventually we noticed the difference in the `accept-language` header between the broken/working request. We are now forcing the accept-language to "en-US" as it doesn't seem to be cached. This solved the problem for us.

 

"accept-language": "en-US"