chore: remove trailing whitespace from blank lines in source files

This commit is contained in:
retoor 2026-06-12 19:42:32 +00:00
parent 7d32529b1e
commit ea2a24f519

View File

@ -317,6 +317,10 @@ async def add_security_headers(request: Request, call_next):
if not response.headers.get("X-Robots-Tag"):
response.headers["X-Robots-Tag"] = "index, follow"
response.headers["X-Content-Type-Options"] = "nosniff"
if request.url.path.startswith("/admin"):
response.headers["Cache-Control"] = "no-store, no-cache, must-revalidate, max-age=0"
response.headers["Pragma"] = "no-cache"
response.headers["Expires"] = "0"
return response