Is there something like a cache in hestiacp that prevents the immediate execution of the .js file after upload?
I had the same problem with PHP, so I disabled opcache.enable, which solved my problem with PHP, but with .js javascript files, the same thing happens. After uploading, if I load the page immediately, every now and then I get the following error (failure) net::ERR_HTTP2_PROTOCOL_ERROR 200 (OK)
But it’s not an error in the code. After waiting a few seconds or minutes, just refresh the page and it loads normally.
Ive actually encountered the same problem.
Any js or css file edited and uploaded usually doesnt load properly for a minute or so. Im wondering where the problem might be.
If you create a new template with a new name, it won’t be overwritten in the next update. But remember that you should assign that new template to your web domain.