From e08aa14c22884d0bfa8f6b32fd2981f75624fc0d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 13 Apr 2020 20:58:29 +0100 Subject: [PATCH] Cache control of one day --- daemon.py | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon.py b/daemon.py index 2c81bd88f..ed58aadac 100644 --- a/daemon.py +++ b/daemon.py @@ -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: