Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't update the ratelimits if we got a response from a cache
The recommended cache, https://github.com/gregjones/httpcache, returns an X-From-Cache: 1 header whenever it serves a response from the cache. Cached responses might include (possibly stale) ratelimit headers, which we would've already processed in the past.
- Loading branch information