This commit is contained in:
Mateusz Gruszczyński
2026-05-06 08:47:20 +02:00
parent dc1cac4e6f
commit 890e3d1564
5 changed files with 6 additions and 6 deletions

View File

@@ -64,9 +64,7 @@ def create_app() -> Flask:
if request.endpoint == "static":
response.headers["Cache-Control"] = "public, max-age=31536000, immutable"
else:
response.headers["Cache-Control"] = "no-cache, no-store, must-revalidate"
response.headers["Pragma"] = "no-cache"
response.headers["Expires"] = "0"
response.headers["Cache-Control"] = "no-store, private"
return response
from .routes.main import bp as main_bp

View File

@@ -325,4 +325,4 @@ def openapi():
if path != "/api/auth/login":
for operation in methods.values():
operation.setdefault("security", [{"sessionCookie": []}])
return jsonify({"openapi": "3.0.3", "info": {"title": "pyTorrent API", "version": "0.2.0"}, "paths": paths, "components": components})
return jsonify({"openapi": "3.0.3", "info": {"title": "pyTorrent API", "version": "0.0.1"}, "paths": paths, "components": components})