- startreq("200 OK", [("Content-Type", "text/html; charset=UTF-8"), ("Content-Length", str(len(ret)))])
+ head = [("Content-Type", "text/html; charset=UTF-8"), ("Content-Length", str(len(ret)))]
+ if root.cache:
+ head.append(("Last-Modified", wsgiutil.httpdate(root.mtime)))
+ startreq("200 OK", head)