fix: force favicon refresh via /favicon.ico

This commit is contained in:
2026-02-12 23:16:24 +03:00
parent ed9de87f71
commit c7de6977c0
4 changed files with 12 additions and 7 deletions

4
app.py
View File

@@ -252,11 +252,13 @@ def health():
@app.route("/favicon.ico")
def favicon():
return send_from_directory(
response = send_from_directory(
app.static_folder,
"img/favicon.png",
mimetype="image/png",
)
response.headers["Cache-Control"] = "no-store, max-age=0"
return response
if __name__ == "__main__":