From c7de6977c0987ccaf918b07d9ad6aa8b8912c1be Mon Sep 17 00:00:00 2001 From: RGalyaviev Date: Thu, 12 Feb 2026 23:16:24 +0300 Subject: [PATCH] fix: force favicon refresh via /favicon.ico --- app.py | 4 +++- templates/admin_login.html | 5 +++-- templates/admin_settings.html | 5 +++-- templates/base.html | 5 +++-- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/app.py b/app.py index 6ae1d15..7e9e457 100644 --- a/app.py +++ b/app.py @@ -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__": diff --git a/templates/admin_login.html b/templates/admin_login.html index 799e0bd..1be6bfc 100644 --- a/templates/admin_login.html +++ b/templates/admin_login.html @@ -4,8 +4,9 @@ Вход в админку | InfraIT - - + + + diff --git a/templates/admin_settings.html b/templates/admin_settings.html index de84a22..f42b253 100644 --- a/templates/admin_settings.html +++ b/templates/admin_settings.html @@ -4,8 +4,9 @@ Настройки сайта | InfraIT - - + + + diff --git a/templates/base.html b/templates/base.html index 7ee7c33..b8f1d62 100644 --- a/templates/base.html +++ b/templates/base.html @@ -11,8 +11,9 @@ - - + + + {% if settings.yandex_metrika_id %}