Cache control for images

main
Bob Mottram 2021-10-11 14:47:44 +01:00
parent fe2d08b50c
commit 19ac55aa2d
1 changed files with 1 additions and 3 deletions

View File

@ -720,9 +720,7 @@ class PubServer(BaseHTTPRequestHandler):
if 'image/' in fileFormat or \
'audio/' in fileFormat or \
'video/' in fileFormat:
cache_control = \
'public, max-age=84600, must-revalidate, ' + \
'stale-while-revalidate=3600'
cache_control = 'public, max-age=84600, immutable'
self.send_header('Cache-Control', cache_control)
else:
self.send_header('Cache-Control', 'public')