queue_stopped #3

Merged
gru merged 33 commits from queue_stopped into master 2026-05-08 23:45:33 +02:00
2 changed files with 3 additions and 2 deletions
Showing only changes of commit 6a44870985 - Show all commits

View File

@@ -110,9 +110,12 @@ def create_app() -> Flask:
static_file = request.path.startswith("/static/")
tracker_icon = request.path.startswith("/static/tracker_favicons/")
favicon_ico = request.path == "/favicon.ico"
if static_file and not tracker_icon:
response.headers["Cache-Control"] = "public, max-age=31536000, immutable"
elif favicon_ico:
response.headers["Cache-Control"] = "public, max-age=86400"
else:
response.headers["Cache-Control"] = "no-store, private"

View File

@@ -22,9 +22,7 @@ def favicon_ico():
current_app.static_folder,
"favicon.svg",
mimetype="image/svg+xml",
max_age=86400,
)
response.headers["Cache-Control"] = "public, max-age=86400"
return response