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 %}