class HTTP::Response::Caching

def to_time_or_epoch(t_str)

def to_time_or_epoch(t_str)
  Time.httpdate(t_str)
rescue ArgumentError
  Time.at(0)
end