开发者

enabling gzip compression for php setting handler?

I have gzip compression enabled 开发者_如何学Goin the php.ini file and compression level set to 9. What do I set zlib.output_handler to? Do I leave this blank? and also how would I know if my pages are actually being compressed?


Easiest way to test if your pages are being compressed is to check the response Content-Encoding header value either using Firebug or Chrome developer tools (it will show gzip if it's being compressed).

According to php docs:

You cannot specify additional output handlers if zlib.output_compression is activated here.

So yes, leave it blank.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜