Why does plugin not update?

I am trying to test installing a custom plugin into our docker container version of document server.

I put the plugin under the following directory:
/var/www/onlyoffice/documentserver/sdkjs-plugins/[plugin-name]/

When I change some code in my javascript file, and replace the file in the directory, that code does not get reflected when I go see the plugin.

In fact, looking at the network, it queries and pulls back the old code when I open the plugin, not the new one. I tried it in a different browser, incognito, etc. and it still pulls the old code, so I don’t think it’s caching issue from browser.

The only way to fix this is for me to delete the old folder entirely from /sdkjs-plugins/ and put in a new folder with a different name. I’ve tried changing the version in config.json as well, but that doesn’t seem to work.

Hello @kanaganai,
Plugin files such as code.js are archived in the plugin directory and the editor loads them from these archives. You need to delete the archive so that the code changes are reflected.

A more reliable way would be to load plugins via URLs instead of uploading them to the server.
https://api.onlyoffice.com/docs/docs-api/usage-api/config/editor/plugins/#pluginsdata
This way you will be able to add something like a version number to an updated code.js and add the new URL to it in config.json.