From 5f84a80b7a897722c9c501e4fe2f3e0ea8e3cac2 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Tue, 3 Dec 2019 22:51:16 +0000 Subject: [PATCH] Extra http headers --- daemon.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/daemon.py b/daemon.py index 4cc933e4..e9258cd2 100644 --- a/daemon.py +++ b/daemon.py @@ -377,6 +377,10 @@ class PubServer(BaseHTTPRequestHandler): self.send_header('Host', self.server.domainFull) self.send_header('InstanceID', self.server.instanceId) 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() def _redirect_headers(self,redirect: str,cookie: str) -> None: