diff --git a/app/routers/dashboard.py b/app/routers/dashboard.py index 706808f..a097925 100644 --- a/app/routers/dashboard.py +++ b/app/routers/dashboard.py @@ -542,7 +542,14 @@ async def local_workspace_page(request: Request, folder: int = None): "breadcrumb": breadcrumb, } template = env.get_template("local_workspace.html") - return template.render(**ctx) + return HTMLResponse( + content=template.render(**ctx), + headers={ + "Cache-Control": "no-cache, no-store, must-revalidate", + "Pragma": "no-cache", + "Expires": "0", + } + ) @router.get("/api/local-workspace/tree") diff --git a/app/templates/local_workspace.html b/app/templates/local_workspace.html index 7af320f..da54128 100644 --- a/app/templates/local_workspace.html +++ b/app/templates/local_workspace.html @@ -336,7 +336,7 @@ .preview-leave-end{transform:translateX(100%);opacity:0;} -