Compress appropriate static content.
authorTom Hughes <tom@compton.nu>
Thu, 9 Aug 2007 12:47:21 +0000 (12:47 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 9 Aug 2007 12:47:21 +0000 (12:47 +0000)
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
 #