Module: Restfulie::Client::Cache::Restrictions

Defined in:
lib/restfulie/client/cache/restrictions.rb

Overview

Cache restrictions that allow you to cache this response or not

Class Method Summary collapse

Class Method Details

.may_cache?(response) ⇒ Boolean

checks whether this request verb and its cache headers allow caching

Returns:

  • (Boolean)


8
9
10
# File 'lib/restfulie/client/cache/restrictions.rb', line 8

def may_cache?(response)
  response && response.may_cache?
end