API Caching control
2 years ago
Tuscany, Italy

Hi!

I've been using the site API for a moderation tool. I query the pending runs queue for a few games, making sure to do as few requests as possible, but I do need up-to-date data from them. It happens very frequently that I get stale cached requests; while the site is up to date, it takes 15m+ for the API to catch up. I tried a few combination of HTTP headers but none of them solved my problem. What would be the appropriate way of handling this?

Thank you!

Toyro98 ve ffleret bunu beğendi