class HTTP::Cache::Headers

def no_cache?

Returns:
  • (Boolean) - does the cache control include 'no-cache'
def no_cache?
  matches?(/\bno-cache\b/i)
end