From 4519d2b476bf620607abe3dc827dd59da5d24d7b Mon Sep 17 00:00:00 2001 From: momowind <51732990+momowind@users.noreply.github.com> Date: Mon, 18 May 2026 20:13:29 -0700 Subject: [PATCH] fix(web): add Cache-Control: no-store to plugin static file serving Prevents browser caching of stale dashboard plugin JS files that may contain bugs already fixed upstream (e.g. COLUMN_LABEL undefined). --- hermes_cli/web_server.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hermes_cli/web_server.py b/hermes_cli/web_server.py index a2db00ac2c3..e2d8e7946bd 100644 --- a/hermes_cli/web_server.py +++ b/hermes_cli/web_server.py @@ -4346,7 +4346,11 @@ async def serve_plugin_asset(plugin_name: str, file_path: str): ".woff": "font/woff", } media_type = content_types.get(suffix, "application/octet-stream") - return FileResponse(target, media_type=media_type) + return FileResponse( + target, + media_type=media_type, + headers={"Cache-Control": "no-store, no-cache, must-revalidate"}, + ) def _mount_plugin_api_routes():