class Faraday::HttpCache::Response

Internal: a class to represent a response from a Faraday request. It decorates the response hash into a smarter object that queries the response headers and status informations about how the caching middleware should handle this specific response.

Public Instance Methods

cacheable?(unused_argument) click to toggle source
# File lib/http_cache/response.rb, line 8
def cacheable?(unused_argument)
  return false if cache_control.no_store?

  cacheable_status_code? && (validateable? || fresh?)
end