]> git.openstreetmap.org Git - rails.git/blobdiff - config/lighttpd.conf
api06: Move version-checking into the models, raising an exception on mismatch
[rails.git] / config / lighttpd.conf
index 75647f2488bd406b2ff50090db48972b831546d2..74aa6f38f3628f16dfdd7eb64154df738ba8282a 100644 (file)
@@ -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
 #