GZIP Compression is not enabled for Javascript and CSS

GZIP Compression is disabled to Javascript and CSS MIME Types.

This is the code added to the mod_deflate config:

<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>

Also, already tried replace this:

AddOutputFilterByType DEFLATE application/x-javascript application/javascript application/ecmascript

by this:

AddOutputFilterByType DEFLATE text/javascript application/x-javascript

What should be done next?

    Predrag Dubajic

    Hi Josh,

    I had a look at your setup and everything seems to be in place so there's another thing that you can check here.

    Some servers have these settings pre configured and don't allow the change to be applied with .htaccess rules and since HTML compression is enabled and others are not I believe that's what we're dealing with here.
    Can you get in touch with your hosting provider and ask them if this is indeed the case, do they allow the changes to be applied via .htaccess and if they don't asked them to either allow that or change the predefined settings themselves.

    Let us know how it goes.

    Best regards,
    Predrag