]> git.openstreetmap.org Git - rails.git/blobdiff - config/lighttpd.conf
User prference system basically done
[rails.git] / config / lighttpd.conf
index 75647f2488bd406b2ff50090db48972b831546d2..5455e266d8b880f5251a225bc6fef3a29b5cf1bc 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,16 @@ compress.filetype = (
   "text/plain"
 )
 
+#
+# Set expiry for static content
+#
+expire.url = (
+  "/images/" => "access 10 years",
+  "/javascripts/" => "access 10 years",
+  "/openlayers/" => "access 10 years",
+  "/stylesheets/" => "access 10 years"
+)
+
 #
 # Cache compressed content
 #