Your trick doesn't work for me in Firefox 96 :)
One more: If you set an image's src attribute to the same thing, it'll still reload the image.
const image = new Image("/img.png");
document.body.append(image);
image.src = image.src;