From f532a63a496db4cedc210f5126aa9109a28e8052 Mon Sep 17 00:00:00 2001 From: qinglong Date: Sun, 14 Jun 2026 11:45:07 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8F=92=E4=BB=B6=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=BC=BA=E5=88=B6no-cache=20+=20app.js=20v0712?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/web_panel/routes/plugin_web.py | 4 +++- static/web_panel/home.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/services/web_panel/routes/plugin_web.py b/services/web_panel/routes/plugin_web.py index a41fc61..119f405 100644 --- a/services/web_panel/routes/plugin_web.py +++ b/services/web_panel/routes/plugin_web.py @@ -13,7 +13,9 @@ def setup_plugin_web_routes(app, service_manager): return web.Response(text=f"Plugin {name} not found", status=404) pages = plugin.get_web_pages() if name in pages: - return web.Response(text=pages[name]["html"], content_type="text/html") + resp = web.Response(text=pages[name]["html"], content_type="text/html") + resp.headers["Cache-Control"] = "no-cache, no-store, must-revalidate" + return resp return web.json_response({"error": "no web page"}) async def plugin_sse(request): diff --git a/static/web_panel/home.html b/static/web_panel/home.html index fa5894b..a256b89 100644 --- a/static/web_panel/home.html +++ b/static/web_panel/home.html @@ -79,6 +79,6 @@ - +