Page 1 of 1

Apache2 Deflate level + CSS JS

Posted: Sat Jul 11, 2015 12:01 am
by David Diaz
Hello!

I want to increase the level of mod_deflate - GZIP and why not, compress more than css.

1º Now in my deflate.conf:

<IfModule mod_deflate.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
</IfModule>


According to: http://idroot.net/tutorials/how-to-enab ... on-apache/ I have to put: DeflateCompressionLevel 9. It´s okay?

Also, is it worth to put this?

AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE text/css


2º NGINX GZIP

# Compression
gzip on;
gzip_comp_level 9;
gzip_min_length 3000;
gzip_buffers 8 64k;
gzip_types text/plain text/css text/javascript
application/x-javascript;
gzip_proxied any;


It´s the maximun, but, the other values are good?

Thanks!!