2015-01-07, 09:20 PM
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
</IfModule>
Is not working, js files are not gziped. I am not sure is it server depened, it is not working on my server.Changing it to
<IfModule mod_filter.c>
AddOutputFilterByType DEFLATE application/atom+xml \
application/javascript \
application/json \
application/rss+xml \
application/vnd.ms-fontobject \
application/x-font-ttf \
application/x-web-app-manifest+json \
application/xhtml+xml \
application/xml \
font/opentype \
image/svg+xml \
image/x-icon \
text/css \
text/html \
text/plain \
text/x-component \
text/xml
</IfModule>
Helped. Seems to be "application/javascript", not "application/x-javascript".
html5-boilerplate -- https://github.com/h5bp/html5-boilerplat.../.htaccess
Besides looking into headers you can check it here -- http://www.whatsmyip.org/http-compression-test/
Jquery and others js are too big to be downloaded notgziped for every user (without cache). It took me a while to figure out why my forum is slow comparing to other parts of site. I didn't thought that my root htaccess' mod_filter is overwritten here. Changing this speeds things a lot.