New Shopify Certification now available: Liquid Storefronts for Theme Developers

Rest API Cache

Happiness
Shopify Partner
20 0 14

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)