Browse Source

[2298] append a Last-Modified header

This is because the server tells browsers that the contents are always
being modified.
Naoki Kambe 12 years ago
parent
commit
0c060d2d54
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/bin/stats/stats_httpd.py.in

+ 1 - 0
src/bin/stats/stats_httpd.py.in

@@ -160,6 +160,7 @@ class HttpHandler(http.server.BaseHTTPRequestHandler):
             self.send_response(200)
             self.send_header("Content-type", "text/xml")
             self.send_header("Content-Length", len(body))
+            self.send_header("Last-Modified", self.date_time_string(time.time()))
             self.end_headers()
             return body