aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2011-10-03 12:38:26 +0100
committerSeb Bacon <seb.bacon@gmail.com>2011-10-03 12:38:26 +0100
commit0eefb1246d9ec2d1f0ab44d4bc10a77880c7fd0e (patch)
tree2c8e331847cffe0c5cbd98472df342829304ab7c
parent6111b3114e7cca6af31789c501fb16daf4aacf4d (diff)
add font gzipping to example apache conf
-rw-r--r--config/httpd.conf14
1 files changed, 13 insertions, 1 deletions
diff --git a/config/httpd.conf b/config/httpd.conf
index 5717ae5e4..47e7f9c72 100644
--- a/config/httpd.conf
+++ b/config/httpd.conf
@@ -38,4 +38,16 @@ RewriteRule /files/(.+) http://files.whatdotheyknow.com/$1
PassengerResolveSymlinksInDocumentRoot on
# Recommend setting this to 3 or less on servers with 512MB RAM
PassengerMaxPoolSize 6
-</IfModule> \ No newline at end of file
+</IfModule>
+
+# Gzip font resources
+<IfModule mod_deflate.c>
+ <IfModule mod_mime.c>
+ Addtype font/opentype .otf
+ Addtype font/opentype .woff
+ Addtype font/eot .eot
+ Addtype font/truetype .ttf
+ </IfModule>
+ AddOutputFilterByType DEFLATE font/opentype font/truetype font/eot
+ AddOutputFilterByType DEFLATE image/svg+xml
+</IFModule>