fix: cover the /extensions/<pack>/index.js load URL with no-cache too

ComfyUI core static-mounts every EXTENSION_WEB_DIRS entry at
/extensions/<name>/ 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.
This commit is contained in:
Z User 2026-09-27 20:38:30 +00:00
parent 33d8f5f0eb
commit f699fa6e06

View File

@ -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/<name> 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),
])