Parcourir la source

[2298] append a Last-Modified header

This is because the server tells browsers that the contents are always
being modified.
Naoki Kambe il y a 12 ans
Parent
commit
0c060d2d54
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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