From 8d69533e11c098d32e8e800976229b21c4e4ce88 Mon Sep 17 00:00:00 2001 From: EduBrain Dev Date: Tue, 14 Apr 2026 19:55:47 +0800 Subject: [PATCH] fix issue --- app/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index c3ac2c9..cdf97a5 100644 --- a/app/main.py +++ b/app/main.py @@ -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")