Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Build to output random file name

Discussion in 'Project Tiny' started by chatpongs, Feb 17, 2019.

  1. chatpongs

    chatpongs

    Joined:
    Mar 2, 2015
    Posts:
    24
    I am looking for a way to keep my users playing only the latest version of my game. In my understanding, there is no way to force clear the browser cache. Best bet is to change the file name for each version, so the browser can detect the change and load the new file

    Tiny mode always output the file game.js. Not sure if there is an option to randomly generate the file name or any workaround for this issue
     
  2. Diablo404

    Diablo404

    Joined:
    Mar 15, 2013
    Posts:
    136
  3. chatpongs

    chatpongs

    Joined:
    Mar 2, 2015
    Posts:
    24
    Diablo404 likes this.