changeset 1319:27b315229e82

use long Expires for static stuff and new url_prefix_static default in standalone
author Thomas Waldmann <tw AT waldmann-edv DOT de>
date Fri, 18 Aug 2006 23:28:04 +0200
parents 760002b5ffa3
children 506d04a9ceee ea342b114f07
files MoinMoin/server/standalone.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/server/standalone.py	Fri Aug 18 23:23:27 2006 +0200
+++ b/MoinMoin/server/standalone.py	Fri Aug 18 23:28:04 2006 +0200
@@ -267,7 +267,7 @@
 class MoinRequestHandler(SimpleHTTPServer.SimpleHTTPRequestHandler):
 
     bufferSize = 8 * 1024 # used to serve static files
-    staticExpire = 7 * 24 * 3600 # 1 week expiry for static files
+    staticExpire = 365 * 24 * 3600 # 1 year expiry for static files
 
     def __init__(self, request, client_address, server):
         self.server_version = "MoinMoin %s %s" % (version.revision,
@@ -293,7 +293,7 @@
         request is not available at this time.  Should be fixed by
         having url_prefix_static in a server config.
         """
-        if self.path.startswith('/wiki/'):
+        if self.path.startswith('/moin_static160/'): # XXX
             self.path = self.path[5:]
             self.serve_static_file()
         elif self.path in ['/favicon.ico', '/robots.txt']: