X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/15c492ebfe7aa6527f7b24fe23056ee9947286d1..53205dbb07352948753b2703c48fe45bbccf755a:/config/lighttpd.conf?ds=sidebyside diff --git a/config/lighttpd.conf b/config/lighttpd.conf index 5455e266d..7a9e24145 100644 --- a/config/lighttpd.conf +++ b/config/lighttpd.conf @@ -65,9 +65,17 @@ mimetype.assign = ( ".js" => "application/x-javascript", ".png" => "image/png", ".swf" => "application/x-shockwave-flash", - ".txt" => "text/plain" + ".txt" => "text/plain", + ".xml" => "text/xml" ) +# +# Force special MIME type for crossdomain.xml files +# +$HTTP["url"] =~ "/crossdomain\.xml$" { + mimetype.assign = ( ".xml" => "text/x-cross-domain-policy" ) +} + # # Enable compression of appropriate static content # @@ -83,9 +91,10 @@ compress.filetype = ( # Set expiry for static content # expire.url = ( + "/export/" => "access 7 days", "/images/" => "access 10 years", "/javascripts/" => "access 10 years", - "/openlayers/" => "access 10 years", + "/openlayers/" => "access 7 days", "/stylesheets/" => "access 10 years" )