From 13cb4fecbbcc79759c26df8d475e98d84970007c Mon Sep 17 00:00:00 2001 From: lelo Date: Fri, 30 May 2025 10:30:06 +0000 Subject: [PATCH] cleanup --- app.py | 5 +++-- static/sw.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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 = [ '/',