Commits

ewdurbin committed a5ece6f

add Cache-Control to json responses

Comments (0)

Files changed (1)

         self.handler.send_header('Content-Disposition', 'inline')
         self.handler.send_header("X-PYPI-LAST-SERIAL", str(serial))
         self.handler.send_header("Surrogate-Key", str("json pkg~%s" % safe_name(name).lower()))
+        self.handler.send_header("Cache-Control", "max-age=86400, public")
         self.handler.end_headers()
         # write the JSONP extra crap if necessary
         s = json.dumps(d, indent=4)