zmiany w acl

This commit is contained in:
Mateusz Gruszczyński 2025-05-13 08:50:50 +02:00
parent 8d29328103
commit d71d33cfe0

2
app.py
View File

@ -371,9 +371,7 @@ def apply_headers(response):
# Blokowanie botów # Blokowanie botów
if app.config.get("BLOCK_BOTS", False): if app.config.get("BLOCK_BOTS", False):
cc = app.config.get("CACHE_CONTROL_HEADER") or "no-store, no-cache, must-revalidate, max-age=0" 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["Cache-Control"] = cc
response.headers["Pragma"] = pragma
response.headers["X-Robots-Tag"] = app.config.get("ROBOTS_TAG") or "noindex, nofollow, nosnippet, noarchive" response.headers["X-Robots-Tag"] = app.config.get("ROBOTS_TAG") or "noindex, nofollow, nosnippet, noarchive"
return response return response