a faraday middleware that respects HTTP cache