Search Unity

Force update webgl build on html?

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

  1. scorp2007

    scorp2007

    Joined:
    Aug 17, 2014
    Posts:
    54
    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.