]> git.openstreetmap.org Git - rails.git/blobdiff - config/lighttpd.conf
Compress appropriate static content.
[rails.git] / config / lighttpd.conf
index 6dca6bd572f7ad7afbcec8cdba7fae4cd44f9928..ffe2ea4f3adb364752b2201e6246794826bb0744 100644 (file)
@@ -58,6 +58,22 @@ mimetype.assign = (
   ".txt" => "text/plain"
 )
 
+#
+# Enable compression of appropriate static content
+#
+compress.filetype = ( 
+  "application/x-javascript",
+  "application/x-shockwave-flash",
+  "text/css",
+  "text/html",
+  "text/plain"
+)
+
+#
+# Cache compressed content
+#
+compress.cache-dir = "/var/cache/lighttpd"
+
 #
 # Serve static content from the rails public area ourselves
 #