mirror of https://gitlab.com/bashrc2/epicyon
Cache control of one day
parent
9c67f95869
commit
e08aa14c22
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue