Set timeout for cache control

merge-requests/8/head
Bob Mottram 2020-11-13 19:30:13 +00:00
parent 669bd60c84
commit 5bfda4ac4d
1 changed files with 1 additions and 1 deletions

View File

@ -570,7 +570,7 @@ class PubServer(BaseHTTPRequestHandler):
def _set_headers(self, fileFormat: str, length: int, cookie: str,
callingDomain: str) -> None:
self._set_headers_base(fileFormat, length, cookie, callingDomain)
self.send_header('Cache-Control', 'public, max-age=0')
self.send_header('Cache-Control', 'public, max-age=86400')
self.end_headers()
def _set_headers_head(self, fileFormat: str, length: int, etag: str,