Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    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.