fix issue

This commit is contained in:
EduBrain Dev
2026-04-14 19:55:47 +08:00
parent db981b88b8
commit 8d69533e11

View File

@@ -213,5 +213,8 @@ async def index():
static_dir = Path(__file__).parent.parent / "static"
index_path = static_dir / "index.html"
if index_path.exists():
return FileResponse(str(index_path))
return FileResponse(
str(index_path),
headers={"Cache-Control": "no-cache, no-store, must-revalidate"},
)
return RedirectResponse(url="/docs")