From: Tom Hughes Date: Thu, 9 Aug 2007 12:47:21 +0000 (+0000) Subject: Compress appropriate static content. X-Git-Tag: live~8238 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/f0c4e816b294c47907a803c5d8303ddaa67ea7fc?hp=1cacff9500260978db282eff582dac01e58d765c Compress appropriate static content. --- 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 #