# File lib/gapps_openid.rb, line 156
    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 = fetch_url(host_meta_url)
      return nil if http_resp.nil?

      matches = /Link: <(.*)>/.match( http_resp.body )
      if matches.nil? 
        OpenID.logger.debug("No link tag found at #{host_meta_url}") unless OpenID.logger.nil?
        return nil
      end
      put_cache(domain, matches[1])
      return matches[1]
    end