mod_deflate
or mod_gzip
, which should be used?
I read mod_gzip
on better explained but want to know extra about mod_deflate
.
Since Brotli was designed to compress streams on the fly, it is faster at both compressing content on the server and decompressing it in the browser than in gzip. In some cases the overall front-end decompression is up to 64% faster than gzip.
The mod_deflate module provides the DEFLATE output filter that allows output from your server to be compressed before being sent to the client over the network.
Gzip is both a compression algorithm based on DEFLATE but less encumbered with potential patents et al, and a file format for storing a single compressed file.
Double click on the file and select headers. Under 'Response headers' you are looking for the 'Connection-Encoding' field, it will say gzip if it is enabled. NOTE: By default, Deflate is enabled on all of our servers.
You should read "Compressing Web Content with mod_gzip and mod_deflate" by Stephen Pierzchala.
From a pragmatic point of view, I suggest mod_deflate
because it is easy to configure, well documented, and actively maintained. Also, a precompiled version of mod_deflate
is more than likely available for your server. Apache may even come with mod_deflate
, as is the case with the Windows installer and apache2.2-bin
Debian package.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With