Image load issue

We’re running into an issue when we load an image in the dom and use that same image within the Phaser game. The image errors out and doesn’t load.

The issue is that the image is already in cache and Phaser script used to load that image doesn’t take this into account.

I’d like to know if there’s a patch/fix available.

Thanks

How are you loading and displaying the image (code)? What error are you seeing? What makes you suspect the browser cache is causing the problem?

The images in phaser are being passed into the code and using the onload process. I can see that the XMLHttpRequest (XHR) request is failing to load due to the fact that the browser has already loaded the file in the image tag.

What code are you using in Phaser? What errors are you seeing in the console or Network Activity?