Cache control of one day

main
Bob Mottram 2020-04-13 20:58:29 +01:00
parent 9c67f95869
commit e08aa14c22
1 changed files with 1 additions and 0 deletions

View File

@ -432,6 +432,7 @@ class PubServer(BaseHTTPRequestHandler):
def _set_headers_etag(self, mediaFilename: str, fileFormat: str,
data, cookie: str, callingDomain: str) -> None:
self._set_headers_base(fileFormat, len(data), cookie, callingDomain)
self.send_header('Cache-Control', 'public, max-age=86400')
etag = None
if os.path.isfile(mediaFilename + '.etag'):
try: