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 — обфускация документов