fix cache-control header

This commit is contained in:
Jakob Ketterl 2020-09-04 14:46:27 +02:00
parent 1aa487ff1a
commit b5bc63e76b
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class Controller(object):
if last_modified is not None:
headers["Last-Modified"] = last_modified.astimezone(tz=timezone.utc).strftime("%a, %d %b %Y %H:%M:%S GMT")
if max_age is not None:
headers["Cache-Control"] = "max-age: {0}".format(max_age)
headers["Cache-Control"] = "max-age={0}".format(max_age)
for key, value in headers.items():
self.handler.send_header(key, value)
self.handler.end_headers()