class Rack::ConditionalGet

def modified_since?(modified_since, headers)

request header. If so, the request has not been modified.
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