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.
精彩评论