Search Unity

  1. Unity 2020.2 has been released.
    Dismiss Notice
  2. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Force update webgl build on html?

Discussion in 'WebGL' started by scorp2007, Nov 5, 2019.

  1. scorp2007


    Aug 17, 2014
    Hello, I have a game on social networks, so I need it to be stored in the cache for quick download. But there's a problem. Sometimes, after updating, I need everyone to refresh when loading the application page, but often it is loaded from the cache, while ignoring all the innovations. How do I solve this problem? Can I somehow specify a forced update for a specific version, but so that it is loaded into the cache until I need the next forced update?

    For example, to load a new picture from the cache into HTML I can use img.png?version=2 at the end of the path, but this does not work with this.