Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Rest API Cache

Rest API Cache

Happiness
Shopify Partner
20 0 17

Correct me if I'm wrong but looks like the Rest API returns cached response. Is there a way to retrieve a fresh data(I need an inventory quantity) using the Rest API?

I tried adding headers like:
Cache-Control: no-cache
- Pragma: no-cache
- If-None-Match: {random_value}

Also I tried to add a timestamp as a query parameter to the request URL.

Any of those didn't help. Any solution (except using GraphQL) would be helpful! Thanks!

Replies 0 (0)