Gzip的开启问题,很蛋疼了
GZip的开启怎么这么蛋疼。在ngnix.conf里面LNMp默认就是开启的。论坛是disucz的,在配置文件也把gzip开启了gzip on;
gzip_min_length 1k;
gzip_proxied any;
gzip_buffers 4 16k;
gzip_comp_level 6;
gzip_disable "MSIE .";
gzip_types text/plain application/x-javascript text/css text/xml;
gzip_vary on;
在putty里面检测。
#curl -I -H "Accept-Encoding: gzip, deflate" "http://bbs.mahoupao.com"
HTTP/1.1 200 OK
Server: nginx
Date: Sat, 22 Dec 2012 11:04:12 GMT
Content-Type: text/html; charset=gbk
Connection: keep-alive
X-Powered-By: PHP/5.3.19
Set-Cookie: N5Vw_2132_saltkey=S4A49rXA; expires=Mon, 21-Jan-2013 11:04:12 GMT; path=/; httponly
Set-Cookie: N5Vw_2132_lastvisit=1356170652; expires=Mon, 21-Jan-2013 11:04:12 GMT; path=/
Set-Cookie: N5Vw_2132_sid=E8jQQ8; expires=Sun, 23-Dec-2012 11:04:12 GMT; path=/
Set-Cookie: N5Vw_2132_lastact=1356174252%09index.php%09; expires=Sun, 23-Dec-2012 11:04:12 GMT; path=/
Set-Cookie: N5Vw_2132_stats_qc_reg=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
Set-Cookie: N5Vw_2132_cloudstatpost=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
Content-Encoding: gzip
Vary: Accept-Encoding
Content-Encoding: gzip 似乎是开启的。
但是到http://tool.chinaz.com/Gzips/ 去检测
就是没开启的。
网址 bbs.mahoupao.com 检测结果如下:
是否压缩 否
压缩类型 无
原始文件大小 82668 字节
压缩后文件大小 22056 字节
压缩率(估计值) 73.32%
怎么搞呢??
但是见鬼的是,在 http://gzip.zzbaike.com/进行检测,GZip又是开启的
怎么回事呢? 补充下,,ngnix已经重启过,但是服务器一直没重启过php的信息显示。,gzip似乎也是开启的
Phar
Phar: PHP Archive support enabled
Phar EXT version 2.0.1
Phar API version 1.1.1
SVN revision $Id: 7b7d559811a842dc9e7d33777a8f993aa2b9933d $
Phar-based phar archives enabled
Tar-based phar archives enabled
ZIP-based phar archives enabled
gzip compression enabled
bzip2 compression disabled (install pecl/bz2)
Native OpenSSL support enabled
[ 本帖最后由 mahoupao 于 2012-12-22 19:22 编辑 ] CDN 也能开启压缩功能么 军哥,,求助啊,,咋回事呢 我的不知道为什么,只有伪静态,PHP动态文件就能检测到已经压缩,纯静态HTML文件检测不到压缩,后来加入一行:gzip_proxied no-cache; ,就全部文件都可以成功检测到压缩了。 问题还是没有得到解决啊,,求助啊 ??、还是没人啊,,求助啊 没人回答啊。。。继续顶上去 只用curl的路过,其他工具不一定准确
页:
[1]