Method: RoadForest::HTTP::UserAgent#cache_response

Defined in:
lib/roadforest/http/user-agent.rb

#cache_response(url, response) ⇒ Object



76
77
78
79
80
81
# File 'lib/roadforest/http/user-agent.rb', line 76

def cache_response(url, response)
  return if response.etag.nil?
  return if response.etag.empty?
  #XXX large bodies
  cache[url][response.etag] = response
end