X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/334b76d2a903465fed9d3a3b3d5b7fdf3347c3d0..86b4d1bc2c05a68053c7485217144a7fcf8ef4e8:/config/lighttpd.conf diff --git a/config/lighttpd.conf b/config/lighttpd.conf index 75647f248..74aa6f38f 100644 --- a/config/lighttpd.conf +++ b/config/lighttpd.conf @@ -7,6 +7,7 @@ server.modules = ( "mod_cgi", "mod_compress", "mod_evasive", + "mod_expire", "mod_fastcgi", "mod_redirect", "mod_status" @@ -78,6 +79,17 @@ compress.filetype = ( "text/plain" ) +# +# Set expiry for static content +# +expire.url = ( + "/export/" => "access 7 days", + "/images/" => "access 10 years", + "/javascripts/" => "access 10 years", + "/openlayers/" => "access 7 days", + "/stylesheets/" => "access 10 years" +) + # # Cache compressed content #