faraday-http-cache
faraday-http-cache copied to clipboard
A Faraday middleware that respects HTTP cache
Hi, I am currently trying to dig into the `HttpCache` class, trying to find an elegant way to capture statistics in order to discover. In what percentage, our API calls...
Initially reported in https://github.com/Shopify/shipit-engine/issues/935 by @josacar ### Context Shipit is a deploy tool, as such it's frequently hitting the same endpoint to grab updates, e.g `GET https://api.github.com/v3/repos/my-org/my-repo/commits?branch=master`. Additionally it uses...
ref. https://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13.4 Hello. I was reading RFC2616 chap 13.4, I noticed that there might be a gap from the implementation. That part is... > A response received with any other...
I have the following scenario: 1. `GET` some url, returns a cacheable (for couple seconds) result with proper headers 2. `GET` same url within cached timeframe, does not hit the...
Would be interesting to experiment with the [RFC 5861](https://tools.ietf.org/html/rfc5861) to implement support for `stale-if-error` and `stale-while-revalidate` extensions. `stale-if-error` might be an easy one but I wonder how would be the...
Hi, According to https://github.com/lostisland/faraday_middleware/README.md, that component is deprecated and should be moved away from. Are there plans to do so for `faraday-http-cache`? Thanks!