Storefront API response cached

Storefront API response cached

TheDeadZone
Shopify Partner
5 0 2

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 4 (4)

evvvritt
Visitor
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
Shopify Partner
5 0 2

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"

Happiness
Shopify Partner
20 0 16

It doesn't help, are you sure that the only thing you did to resolve the issue?

TheDeadZone
Shopify Partner
5 0 2

Unfortunately I'm not sure anymore, as it's quite some time ago