Extra header for images

main
Bob Mottram 2021-09-26 17:31:25 +01:00
parent 8b60a53239
commit dd9f079316
1 changed files with 3 additions and 1 deletions

View File

@ -721,8 +721,10 @@ class PubServer(BaseHTTPRequestHandler):
cache_control = \
'public, max-age=84600, must-revalidate, ' + \
'stale-while-revalidate=3600'
self.send_header('Cache-Control', cache_control)
self.send_header('Accept-Ranges', 'bytes')
else:
cache_control = 'public'
self.send_header('Cache-Control', 'public')
self.send_header('Cache-Control', cache_control)
self.send_header('Origin', self.server.domainFull)
self.send_header('APInstanceID', self.server.instanceId)