From f699fa6e064a3dc4c17eb96c0945d25320473e06 Mon Sep 17 00:00:00 2001 From: Z User Date: Sun, 27 Sep 2026 20:38:30 +0000 Subject: [PATCH] fix: cover the /extensions//index.js load URL with no-cache too ComfyUI core static-mounts every EXTENSION_WEB_DIRS entry at /extensions// late in server.add_routes(); our handler registers earlier so aiohttp registration order gives it precedence. The editor entry file is now revalidated on both plausible load paths. --- __init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/__init__.py b/__init__.py index 9e15143..7066792 100644 --- a/__init__.py +++ b/__init__.py @@ -56,7 +56,11 @@ if os.path.exists(dist_path): ) server.PromptServer.instance.app.add_routes([ + # Registered before the static mounts below (and before core's own + # /extensions/ mount, which happens later in server.add_routes), + # so aiohttp registration order lets these win for index.js. web.get(f"/{project_name}/index.js", _serve_editor_index), + web.get(f"/extensions/{project_name}/index.js", _serve_editor_index), web.static(f"/{project_name}/", dist_path), ])