From f0c4e816b294c47907a803c5d8303ddaa67ea7fc Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 9 Aug 2007 12:47:21 +0000 Subject: [PATCH 1/1] Compress appropriate static content. --- config/lighttpd.conf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/config/lighttpd.conf b/config/lighttpd.conf index 6dca6bd57..ffe2ea4f3 100644 --- a/config/lighttpd.conf +++ b/config/lighttpd.conf @@ -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 # -- 2.43.2