mirror of https://gitlab.com/bashrc2/epicyon
Add content-disposition for images
parent
373a1a2764
commit
5c558b1ca0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue