changeset 29491 | 7f0498bd284e |
parent 27046 | 37fcfe52c68c |
child 29566 | 075146e85bb6 |
--- a/mercurial/hgweb/common.py Tue Jun 07 15:35:58 2016 +0200 +++ b/mercurial/hgweb/common.py Sat Jul 09 03:26:24 2016 +0800 @@ -187,7 +187,7 @@ os.environ.get("EMAIL") or "") def caching(web, req): - tag = str(web.mtime) + tag = 'W/"%s"' % web.mtime if req.env.get('HTTP_IF_NONE_MATCH') == tag: raise ErrorResponse(HTTP_NOT_MODIFIED) req.headers.append(('ETag', tag))