fix issue
This commit is contained in:
@@ -213,5 +213,8 @@ async def index():
|
|||||||
static_dir = Path(__file__).parent.parent / "static"
|
static_dir = Path(__file__).parent.parent / "static"
|
||||||
index_path = static_dir / "index.html"
|
index_path = static_dir / "index.html"
|
||||||
if index_path.exists():
|
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")
|
return RedirectResponse(url="/docs")
|
||||||
|
|||||||
Reference in New Issue
Block a user