Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mod_deflate or mod_gzip, which should be used?

mod_deflate or mod_gzip, which should be used?

I read mod_gzip on better explained but want to know extra about mod_deflate.

like image 696
webkul Avatar asked Jul 03 '10 23:07

webkul


People also ask

Is Brotli better than gzip?

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.

What is Apache Mod_deflate?

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.

Is gzip the same as DEFLATE?

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.

How do you check gzip compression is enabled or not?

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.


1 Answers

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.

like image 94
Daniel Trebbien Avatar answered Oct 04 '22 03:10

Daniel Trebbien