Most of the SEO, Developers are concern about the website load time, and question about the compression from the server end.
The compression is achieved from both PHP zlib output_compression and Apache's mod_gzip (old Apache version) , mod_deflate.
But the one question remains unanswered is that which compression method gives good compression.
this post is going to cover the same question.
mod_gzip or mod_deflate : The mod_gzip or mod_deflate is supported by Apache and almost compresses all the files including the style sheets.
The compression percentage is good as compared to PHP's zlib output_compression.
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0 no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
Header append Vary User-Agent env=!dont-vary
zlib.output_compression : The zlib.output_compression is supported by PHP and compresses only PHP handler pages hence proves less effective.
Hope, the post helps to clear the doubts. 🙂