Set cache control expires

main
Bob Mottram 2021-09-26 16:04:20 +01:00
parent bf433e34f0
commit 8ae8f2d5a5
1 changed files with 3 additions and 1 deletions

View File

@ -715,7 +715,9 @@ class PubServer(BaseHTTPRequestHandler):
callingDomain: str, permissive: bool) -> None:
self.send_response(200)
self.send_header('Content-type', fileFormat)
self.send_header('Cache-Control', 'public')
cache_control = \
'max-age=84600, must-revalidate, stale-while-revalidate=3600'
self.send_header('Cache-Control', cache_control)
self.send_header('Origin', self.server.domainFull)
self.send_header('InstanceID', self.server.instanceId)
self.send_header('X-Clacks-Overhead', 'GNU Natalie Nguyen')