zmiany w acl
This commit is contained in:
parent
8d29328103
commit
d71d33cfe0
2
app.py
2
app.py
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user