X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/1cacff9500260978db282eff582dac01e58d765c..f0c4e816b294c47907a803c5d8303ddaa67ea7fc:/config/lighttpd.conf 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 #