maybe_new (::Utils::HttpUtil::CachedObject)

    # File lib/rbot/core/utils/httputil.rb, line 203
        def self.maybe_new(resp)
          debug "maybe new #{resp}"
          return nil if resp.no_cache
          return nil unless Net::HTTPOK === resp ||
          Net::HTTPMovedPermanently === resp ||
          Net::HTTPFound === resp ||
          Net::HTTPPartialContent === resp

          cc = resp['cache-control']
          return nil if cc && (cc =~ /no-cache/i)

          date = Time.now
          if d = resp['date']
            date = Time.httpdate(d)
          end

          return nil if resp['expires'] && (Time.httpdate(resp['expires']) < date)

          debug "creating cache obj"

          self.new(resp)
        end