开发者

enabling gzip compression for php setting handler?

开发者 https://www.devze.com 2023-03-07 16:43 出处:网络
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 ar

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

精彩评论

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