def fetch_host_meta(domain)
      cached_value = get_cache(domain)
      return cached_value unless cached_value.nil?

      host_meta_url = "https://www.google.com/accounts/o8/.well-known/host-meta?hd=#{CGI::escape(domain)}"
      http_resp = OpenID.fetch(host_meta_url)
      if http_resp.code != "200" and http_resp.code != "206"
        return nil
      end
      matches = /Link: <(.*)>/.match( http_resp.body )
      if matches.nil?
        return nil
      end
      put_cache(domain, matches[1])
      return matches[1]
    end
def fetch_host_meta(domain)
      cached_value = get_cache(domain)
      return cached_value unless cached_value.nil?

      host_meta_url = "https://www.google.com/accounts/o8/.well-known/host-meta?hd=#{CGI::escape(domain)}"
      http_resp = OpenID.fetch(host_meta_url)
      if http_resp.code != "200" and http_resp.code != "206"
        return nil
      end
      matches = /Link: <(.*)>/.match( http_resp.body )
      if matches.nil?
        return nil
      end
      put_cache(domain, matches[1])
      return matches[1]
    end
Kickstart the discovery process by checking against Google's well-known location for hosted domains.
 This gives us the location of the site's XRDS doc