Apache的deflate模块不工作

这是非常平坦的,我谷歌没有运气的问题。 我有2台服务器(centos6,apache2.2)。 Apache的configuration是完全一样的(我当然是由puppetconfiguration的apache)

我的deflate.conf:

AddOutputFilterByType DEFLATE text/html text/plain text/xml AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript text/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/json 

当我curl -I – 压缩http://web1.tld/file.css我得到以下答复:

 HTTP/1.1 200 OK Date: Fri, 19 Sep 2014 15:02:21 GMT Server: Apache Last-Modified: Fri, 19 Sep 2014 08:36:46 GMT ETag: "189dc-50367005ed32a" Accept-Ranges: bytes Cache-Control: max-age=2419200 Expires: Fri, 17 Oct 2014 15:02:21 GMT Vary: Accept-Encoding Content-Encoding: gzip Content-Length: 16191 Content-Type: text/css 

没关系,我看到Content-Encoding:gzip

与第二个服务器: curl -I – 压缩http://web2.tld/file.css

 HTTP/1.1 200 OK Date: Fri, 19 Sep 2014 15:03:47 GMT Server: Apache Last-Modified: Fri, 19 Sep 2014 08:36:46 GMT ETag: "189dc-50367005ed32a" Accept-Ranges: bytes Content-Length: 100828 Cache-Control: max-age=2419200 Expires: Fri, 17 Oct 2014 15:03:47 GMT Vary: Accept-Encoding Content-Type: text/css 

这是不正确的: 内容长度:100828没有内容编码:gzip

但! 奇怪的是在这里:当我做同样的请求从web1到web2服务器 – 在web2上启用gzip!

如果请求有“Accept-Encoding”,请指出是否可以发送“Vary”标头?