Question

If GZip is enabled in IIS is it only going to improve performance for ASP pages or can it be setup to compress PHP pages as well?

Was it helpful?

Solution

PHP also has built in support for gzip compression. You can initialize it by calling

ob_start("ob_gzhandler"); 

or by activating the zlib.output_compression directive in php.ini.

OTHER TIPS

Yes, gzip just compresses the content being served to the browser i.e. html and images.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top