WebGL Version Can't Be Updated!

If i clear cache data on my browser, problem disappear. But this doesn’t work on everyone. And i can’t force users to clear their cache data always! I can’t see any clue on forums. Players see old cached version always.

There a a few things to look into and consider about this:

First, unless you have unlimited bandwidth and data transfer on your web hosting, you will WANT data caching eventually, especially when you gain many many players and they come back day after day to play. You are also benefiting them by reducing how much data they need to re-download on their end too.

But, if you need to control or disable this, try:

  1. Check if your Project Settings has data caching turned on: https://docs.unity3d.com/Manual/class-PlayerSettingsWebGL.html
  2. Next, if you are using a website hosting service, check your .htaccess file to see if the file types related to Unity WebGL are set to cache for a long time: https://gtmetrix.com/leverage-browser-caching.html
  3. Also check if your web host has a caching that you can manually flush/purge.
  4. Lastly, and maybe not very helpful: Understand that browser-side caching is how the web and browsers are intended to work and it has been like this for decades. If you are changing content in your game frequently, you may want to change your approach to how content gets updated.