Extra http headers

main
Bob Mottram 2019-12-03 22:51:16 +00:00
parent ec174d336d
commit 5f84a80b7a
1 changed files with 4 additions and 0 deletions

View File

@ -377,6 +377,10 @@ class PubServer(BaseHTTPRequestHandler):
self.send_header('Host', self.server.domainFull) self.send_header('Host', self.server.domainFull)
self.send_header('InstanceID', self.server.instanceId) self.send_header('InstanceID', self.server.instanceId)
self.send_header('X-Robots-Tag','noindex') self.send_header('X-Robots-Tag','noindex')
self.send_header('cache-control','public, max-age=315576000, immutable')
self.send_header('x-clacks-overhead: GNU Natalie Nguyen')
self.send_header('access-control-allow-origin: *')
self.send_header('accept-ranges: bytes')
self.end_headers() self.end_headers()
def _redirect_headers(self,redirect: str,cookie: str) -> None: def _redirect_headers(self,redirect: str,cookie: str) -> None: