changeset 36869 | 7ad6a275316f |
parent 36853 | 7066617187c1 |
child 36873 | 98baf8dea553 |
--- a/mercurial/hgweb/common.py Sat Mar 10 14:06:58 2018 -0800 +++ b/mercurial/hgweb/common.py Sat Mar 10 14:19:27 2018 -0800 @@ -214,12 +214,6 @@ config("ui", "username") or encoding.environ.get("EMAIL") or "") -def caching(web, req): - tag = r'W/"%d"' % web.mtime - if req.env.get('HTTP_IF_NONE_MATCH') == tag: - raise ErrorResponse(HTTP_NOT_MODIFIED) - req.headers.append(('ETag', tag)) - def cspvalues(ui): """Obtain the Content-Security-Policy header and nonce value.