内容不被压缩,即使我在php.ini中使用zlib
我已经编辑了我的php.ini文件,以便它有这两个条目: zlib.output_compression = On zlib.output_compression_level = 4 但是,在重新启动apache之后,当我请求php页面时,响应中返回的标题表明我的服务器仍然没有提供压缩页面(这里是使用Chromenetworkingfunction查看的选定标题): Cache-Control:no-cache, must-revalidate, max-age=0 Connection:Keep-Alive Content-Type:text/html; charset=UTF-8 Date:Mon, 17 Sep 2012 23:46:13 GMT Expires:Wed, 11 Jan 1984 05:00:00 GMT Last-Modified:Mon, 17 Sep 2012 23:46:13 GMT Pragma:no-cache Proxy-Connection:Keep-Alive Server:Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.17 Transfer-Encoding:chunked Via:1.1 XXX-PRXY-07 X-Powered-By:PHP/5.2.17 我可能会做错什么? 还有其他的设置需要改变吗? 编辑 这是另一组返回到另一台计算机的标题: Cache-Control:no-cache, must-revalidate, max-age=0 Connection:close Content-Type:text/html; […]