diff --git a/app.py b/app.py index 21ff955..6e195bb 100644 --- a/app.py +++ b/app.py @@ -371,9 +371,7 @@ def apply_headers(response): # Blokowanie botów if app.config.get("BLOCK_BOTS", False): cc = app.config.get("CACHE_CONTROL_HEADER") or "no-store, no-cache, must-revalidate, max-age=0" - pragma = app.config.get("PRAGMA_HEADER") or "no-cache" response.headers["Cache-Control"] = cc - response.headers["Pragma"] = pragma response.headers["X-Robots-Tag"] = app.config.get("ROBOTS_TAG") or "noindex, nofollow, nosnippet, noarchive" return response