mercurial/hgweb/hgweb_mod.py
changeset 34605 625202a44d88
parent 34602 56816cfc4951
child 34611 c879fc7bd71f
--- a/mercurial/hgweb/hgweb_mod.py	Wed Oct 11 04:14:14 2017 +0200
+++ b/mercurial/hgweb/hgweb_mod.py	Wed Oct 11 04:14:33 2017 +0200
@@ -436,7 +436,7 @@
 
             # Don't enable caching if using a CSP nonce because then it wouldn't
             # be a nonce.
-            if rctx.configbool('web', 'cache', True) and not rctx.nonce:
+            if rctx.configbool('web', 'cache') and not rctx.nonce:
                 caching(self, req) # sets ETag header or raises NOT_MODIFIED
             if cmd not in webcommands.__all__:
                 msg = 'no such method: %s' % cmd