“通过:HTTP/1.1 GWA”HTTP 标头 - 它是什么?

GDR*_*GDR 4 http google

我的一位客户在他们的网站上安装了一些东西,这使得他们的所有资源都从 googleusercontent.com 域加载。所有 HTTP 请求还具有以下标头:

Via: HTTP/1.1 GWA
Run Code Online (Sandbox Code Playgroud)

我对这个特定标题的所有搜索都显示“Google Web Accelerator”,一种客户端技术于 2006 年停止使用。我当然没有安装它(即使我安装了,我很确定 wget -S 不会利用它)。

你能指出我在这个网站上使用的产品吗?它可能是某种缓存,如 Cloudflare 或 Torbit,但来自 Google。

mr.*_*tic 5

Via:首标由代理加入,正向和反向,并且可以在请求标题和应答报头出现。包含“GWA”的字段理论上是主机名或假名字段,可能是代理/防火墙的标识符,例如“网关 A”,:

  Via =  "Via" ":" 1#( received-protocol received-by [ comment ] )
  received-protocol = [ protocol-name "/" ] protocol-version
  received-by       = ( host [ ":" port ] ) | pseudonym
Run Code Online (Sandbox Code Playgroud)

由于您在请求标头中看到它(大概在 Web 服务器本身上),并且您没有发送它,因此它必须是服务器端反向代理/加速器。我最好的猜测是 Google PageSpeed,您应该能够通过检查网站的 DNS CNAME 来确认它,PageSpeed使用名称匹配*-ps.googleusercontent.com进行内容缓存。我无法用Via标题确认它的行为,可以在途中的任何步骤添加。您可以绕过 PageSpeed 服务器来确认(或拒绝)是否使用以下内容添加它:

wget -S http://1.2.3.4/ --header "Host: www.website.com"
Run Code Online (Sandbox Code Playgroud)

其中 1.2.3.4 是托管网站的真实公共 IP(即不是 PageSpeed 服务器),而 www.website.com 是真实地址。