Apache setting [cancel deflate module] in ubuntu14.04

  • Check if mod_deflate is installed and enabled run the command below

apachectl -t -D DUMP_MODULES |grep deflate

if your apache server installed mod_deflate and enabled it, you will see

deflate_module (shared)

Configuration

  • comment out lines that you think it is unnecessary to compress in the file deflate.conf (which is located in /etc/apache2/mods-available in ubuntu14.04) such as my setting
<IfModule mod_deflate.c>
    <IfModule mod_filter.c>
    # these are known to be safe with MSIE 6
    #AddOutputFilterByType DEFLATE text/html text/plain text/xml
     
    # everything else may cause problems with MSIE 6
    #AddOutputFilterByType DEFLATE text/css
    #AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript
    #AddOutputFilterByType DEFLATE application/rss+xml
    #AddOutputFilterByType DEFLATE application/xml> 
    </IfModule>
</IfModule>

sudo service apache2 restart

Refer to the following Link

Refer to the following Link