class HTTP::Cache::Headers
def matches?(pattern)
-
(Boolean)
- true when cache-control header matches the pattern
def matches?(pattern) get("Cache-Control").any? { |v| v =~ pattern } end
(Boolean)
- true when cache-control header matches the pattern
def matches?(pattern) get("Cache-Control").any? { |v| v =~ pattern } end