The mod_deflate module provides the DEFLATE output filter that allows the output from your server to be compressed before being sent to the client over the network. mod_deflate is the replacement of mod_gzip which was used with an older version of Apache.
Enable Gzip Module in Apache
By default, mod_deflate module is enabled in Apache. To make sure that it is enabled, check following line in Apache configuration file.