##// END OF EJS Templates
configitems: register the 'web.cache' config
Boris Feld -
r34606:625202a4 default
parent child Browse files
Show More
@@ -727,6 +727,9 b" coreconfigitem('web', 'allow_push',"
727 727 coreconfigitem('web', 'allowzip',
728 728 default=None,
729 729 )
730 coreconfigitem('web', 'cache',
731 default=True,
732 )
730 733 coreconfigitem('web', 'accesslog',
731 734 default='-',
732 735 )
@@ -436,7 +436,7 b' class hgweb(object):'
436 436
437 437 # Don't enable caching if using a CSP nonce because then it wouldn't
438 438 # be a nonce.
439 if rctx.configbool('web', 'cache', True) and not rctx.nonce:
439 if rctx.configbool('web', 'cache') and not rctx.nonce:
440 440 caching(self, req) # sets ETag header or raises NOT_MODIFIED
441 441 if cmd not in webcommands.__all__:
442 442 msg = 'no such method: %s' % cmd
General Comments 0
You need to be logged in to leave comments. Login now