mirror of https://gitlab.com/bashrc2/epicyon
Set timeout for cache control
parent
669bd60c84
commit
5bfda4ac4d
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue