##// END OF EJS Templates
hgweb: support disabling page cache...
Steven Stallion -
r13966:a1c31c64 default
parent child Browse files
Show More
@@ -1052,6 +1052,8 The full set of options is:
1052 1052
1053 1053 To disable SSL verification temporarily, specify ``--insecure`` from
1054 1054 command line.
1055 ``cache``
1056 Whether to support caching in hgweb. Defaults to True.
1055 1057 ``contact``
1056 1058 Name or email address of the person in charge of the repository.
1057 1059 Defaults to ui.username or ``$EMAIL`` or "unknown" if unset or empty.
@@ -188,7 +188,8 class hgweb(object):
188 188 req.form['cmd'] = [tmpl.cache['default']]
189 189 cmd = req.form['cmd'][0]
190 190
191 caching(self, req) # sets ETag header or raises NOT_MODIFIED
191 if self.configbool('web', 'cache', True):
192 caching(self, req) # sets ETag header or raises NOT_MODIFIED
192 193 if cmd not in webcommands.__all__:
193 194 msg = 'no such method: %s' % cmd
194 195 raise ErrorResponse(HTTP_BAD_REQUEST, msg)
General Comments 0
You need to be logged in to leave comments. Login now