mercurial/hgweb/hgweb_mod.py
changeset 13966 a1c31c64bcd3
parent 13964 616ad3f6fd33
child 14913 44382887d012
child 14991 4f39610996fa
--- a/mercurial/hgweb/hgweb_mod.py	Wed Apr 20 12:44:32 2011 -0500
+++ b/mercurial/hgweb/hgweb_mod.py	Wed Apr 20 00:01:50 2011 -0400
@@ -188,7 +188,8 @@
                 req.form['cmd'] = [tmpl.cache['default']]
                 cmd = req.form['cmd'][0]
 
-            caching(self, req) # sets ETag header or raises NOT_MODIFIED
+            if self.configbool('web', 'cache', True):
+                caching(self, req) # sets ETag header or raises NOT_MODIFIED
             if cmd not in webcommands.__all__:
                 msg = 'no such method: %s' % cmd
                 raise ErrorResponse(HTTP_BAD_REQUEST, msg)