Add content-disposition for images

main
Bob Mottram 2021-10-11 20:33:25 +01:00
parent 373a1a2764
commit 5c558b1ca0
1 changed files with 1 additions and 0 deletions

View File

@ -722,6 +722,7 @@ class PubServer(BaseHTTPRequestHandler):
'video/' in fileFormat:
cache_control = 'public, max-age=84600, immutable'
self.send_header('Cache-Control', cache_control)
self.send_header('Content-Disposition', 'inline')
else:
self.send_header('Cache-Control', 'public')
self.send_header('Origin', self.server.domainFull)