From 59f7601266c74c191cdcf75f7c5f6bbc5c4f57f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sun, 12 Jul 2026 13:11:48 +0400 Subject: [PATCH] =?UTF-8?q?fix:=20no-cache=20=D0=B7=D0=B0=D0=B3=D0=BE?= =?UTF-8?q?=D0=BB=D0=BE=D0=B2=D0=BA=D0=B8=20(Cache-Control,=20Pragma,=20Ex?= =?UTF-8?q?pires)=20=E2=80=94=20F5=20=D0=B1=D0=BE=D0=BB=D1=8C=D1=88=D0=B5?= =?UTF-8?q?=20=D0=BD=D0=B5=20=D0=BA=D1=8D=D1=88=D0=B8=D1=80=D1=83=D0=B5?= =?UTF-8?q?=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- site/app.py | 10 +++++++++- site/templates/index.html | 3 +++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/site/app.py b/site/app.py index 86ef435..05379ba 100644 --- a/site/app.py +++ b/site/app.py @@ -20,7 +20,7 @@ if _sys_path_root not in sys.path: sys.path.insert(0, _sys_path_root) # Версия приложения (меняется при изменениях) -VERSION = "3.2.3" +VERSION = "3.2.4" def create_app(): @@ -45,6 +45,14 @@ def create_app(): register_routes(app) + # Запрещаем кэширование — F5 всегда грузит свежую страницу + @app.after_request + def no_cache(response): + response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate" + response.headers["Pragma"] = "no-cache" + response.headers["Expires"] = "0" + return response + return app diff --git a/site/templates/index.html b/site/templates/index.html index d0bbd61..1ae51d6 100644 --- a/site/templates/index.html +++ b/site/templates/index.html @@ -3,6 +3,9 @@ + + + DrHider — обфускация документов