When i export a game to WebGL (Webassembly and Asm.js) and then upload and launch it for the very first time, the game does not load. I get the following error in the console:
“[UnityCache] indexedDB database could not be opened”
After this message, nothing happens.
Now if i refresh the page, it starts working and i don’t get that error. Every time i try to reload the game after that first unsuccessful load, it works. So the problem is only on the very first loading of the game.
I could reproduce this problem multiple times on Google Chrome on multiple computers with multiple games. It is very hard to reproduce it though.
It seems to be happening with every game exported with Unity 2018.1 and played for the very first time on a machine.
Does somebody have a fix for this? Thanks.