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 @@ - +