class Faraday::HttpCache::Storage
def response_matches?(request, cached_request, cached_response)
cached_response - The Hash of the response that was cached.
cached_request - The Hash of the request that was cached.
current HTTP request.
request - A Faraday::HttpCache::::Request instance of the
request.
Internal: Check if a cached response and request matches the given
def response_matches?(request, cached_request, cached_response) request.method.to_s == cached_request[:method].to_s && vary_matches?(cached_response, request, cached_request) end