Mobile app version of vmapp.org
Login or Join
Vandalay111

: How to enable more file formats for GZIP/Deflate Compression I enabled gzip/Deflate compression on our servers per Google's Page Speed directives, and it looks like it's now compression html/php

@Vandalay111

Posted in: #Compression #Gzip #Optimization #Webserver

I enabled gzip/Deflate compression on our servers per Google's Page Speed directives, and it looks like it's now compression html/php files, but a couple file formats aren't being compressed that Google rightfully is saying should be compressed, namely .js and .ttf files. How do I add more file formats to httpd.conf so they're compressed as well?

Current lines in httpd.conf I have are:

#
# Deflate output configuration
#
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html


Is it as simple as adding text/js and text/ttf?

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

1 Comments

Sorted by latest first Latest Oldest Best

 

@Sarah324

Yep. Just add more types:

AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/x-font-ttf

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme