class Rack::ConditionalGet
def modified_since?(modified_since, headers)
Whether the last-modified response header matches the if-modified-since
def modified_since?(modified_since, headers) last_modified = to_rfc2822(headers['last-modified']) and modified_since >= last_modified end