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
Showing
2 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters