diff --git a/app.py b/app.py index 3e1391d..d7ecfa0 100755 --- a/app.py +++ b/app.py @@ -488,9 +488,10 @@ def serve_file(subpath): if as_attachment: response.headers['X-Content-Type-Options'] = 'nosniff' - - if not as_attachment : + response.headers['Content-Disposition'] = 'attachment' + else: response.headers['Content-Disposition'] = 'inline' + response.headers['Cache-Control'] = 'public, max-age=86400' # 7) Logging diff --git a/static/sw.js b/static/sw.js index 6ed70ce..afb2215 100644 --- a/static/sw.js +++ b/static/sw.js @@ -1,4 +1,4 @@ -const VERSION = '1.18'; +const VERSION = '1.19'; const CACHE_NAME = `gottesdienste-v${VERSION}`; const assets = [ '/',