Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache 在我的本地主机中不解析ESI_Apache_Http Headers_Gzip_Varnish - Fatal编程技术网

Apache 在我的本地主机中不解析ESI

Apache 在我的本地主机中不解析ESI,apache,http-headers,gzip,varnish,Apache,Http Headers,Gzip,Varnish,在我的本地主机中不解析ESI: 我的配置与apache中的其他用户类似,但我发送/获取以下标题: Server Apache/2.2.21 (Debian) X-Powered-By PHP/5.3.8-2 Content-Encoding gzip Edge-Control cache-maxage=31536000s Cache-Control public, max-age=31536000 Pragma public Expires Tue, 30 Oct 20

在我的本地主机中不解析ESI:

我的配置与apache中的其他用户类似,但我发送/获取以下标题:

Server  Apache/2.2.21 (Debian)
X-Powered-By    PHP/5.3.8-2
Content-Encoding    gzip
Edge-Control    cache-maxage=31536000s
Cache-Control   public, max-age=31536000
Pragma  public
Expires Tue, 30 Oct 2012 11:41:15 GMT
ProcessID   3918
Etag    c2e6665981c6441ab860d12a6853a002
Vary    Accept-Encoding
Content-Type    text/html; charset=UTF-8
Content-Length  4193
Date    Mon, 31 Oct 2011 10:40:54 GMT
X-Varnish   630755530
Age 0
Via 1.1 varnish
Request Headersview source
Host    i.host.com
User-Agent  Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1 Iceweasel/7.0.1
Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language en-us,en;q=0.5
Accept-Encoding gzip, deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection  keep-alive
Cookie  OAX=1I6M006JYzwABwNj; __utma=164510763.315921951.1317626740.1319722611.1319795071.39; __utmz=164510763.1317626740.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=229641156.678788339.1317628577.1320057939.1320060143.19; __utmz=229641156.1317628577.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); lang=es; __utmc=229641156; __utmb=229641156.4.10.1320060143
If-None-Match   c2e6665981c6441ab860d12a6853a002
Cache-Control   max-age=0
其他有效的用户示例:

Server  Apache/2.2.4 (Win32) PHP/5.3.5
X-Powered-By    PHP/5.3.5
Set-Cookie  lang=es; expires=Mon, 31-Oct-2011 11:46:01 GMT; path=/
Edge-control    cache-maxage=31536000s
Cache-Control   public, max-age=31536000
Pragma  public
Expires Tue, 30 Oct 2012 10:46:01 GMT
ProcessID   3824
Etag    f9dcd4b1ec3f40e6763e80a3ba195de3
Content-Type    text/html; charset=UTF-8
Transfer-Encoding   chunked
Date    Mon, 31 Oct 2011 10:46:01 GMT
X-Varnish   630755925
Age 0
Via 1.1 varnish
Connection  keep-alive
Cabeceras de la peticiónver fuente
Host    t.host.com
User-Agent  Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20100101 Firefox/5.0
Accept  text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language es-es,es;q=0.8,en-us;q=0.5,en;q=0.3
Accept-Encoding gzip, deflate
Accept-Charset  ISO-8859-1,utf-8;q=0.7,*;q=0.7
Connection  keep-alive
Cookie  OAX=1I6M001BiwUAB0EE; __utma=164510763.1374034467.1296142874.1319189845.1319204625.107; __utmz=164510763.1319204625.107.79.utmcsr=tamara.eitb.com|utmccn=(referral)|utmcmd=referral|utmcct=/eu/eguraldia/eskia/; __utma=261580168.2132154740.1302611206.1319197586.1320057948.90; __utmz=261580168.1302611206.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); lang=es; __utmb=261580168.1.10.1320057948; __utmc=261580168
我不知道为什么我从varnish收到不同的标题

我得到:

Content-Encoding    gzip
Vary    Accept-Encoding
为什么我得到这个标题和其他用户没有


两者都有mod_deflate on…

为了让Varnish(一个用户代理)正确处理请求,您将获得内容编码和变化。内容编码告诉Vanish,一个用户代理,页面内容是以zip格式编码的,在您的情况下,页眉是不同的,特别是在有或没有gzip压缩的情况下缓存页面的两个版本。 如果后端支持压缩编码,那么它可以提供一个带有压缩gzip或deflate的版本,或者它可以提供一个没有任何压缩文本/html的版本


但是,要在清漆中实现ESI处理,请使用ESI;命令在vcl文件上执行。有关更多信息,请参见此链接:

我是开发人员,无法访问varnish server:sysadmin不帮我,说要在客户端修复,但我不知道为什么会收到此标题和其他win用户否: