Update Project usign Web Player

Dear forum,

I have a big problem with the upgrade of my project on my webhost using unity.

At this moment I have a release 1.0 of my project called fpsGame.unity3d.

Now, if I overwrite this file, with my 1.1 upgraded version (but with the same name fpsGame.unity3d). all the users continue to load the OLD version 1.0 of the game.

It is possbile that I need to change every time the .unity3d file name (example fpsGame02.unity3d) and link address to upgrade correctly?

I think Unity find same file name every web access to avoid download of same file but I don’t understand how to upgrade a project now!

Thanks!

Up

I never experience these issues myself while i’m not even changing version number.
have you tried cleaning your cache / forcing a refresh to be sure?
I normally use the web.html and web.unity3d files just as they roll out of the compiler.

You should check your webhoster for caching files for a longer time. I dont know why, but there are some out there, that cache files for days or week.

There two possibilities that create that problem:

1: Web Cache- Browser; Depending on how your web headers are setup (no-caching, ect) and webserver config, your users will indeed need to force a refresh to get the newer file.

2: Unity Webplayer Cache; This free cache is used for assetbundles, you have 50mb of ‘uncompressed’ cache that is stored locally on the client machine. You can easily control this through the Cache API in Unity’s doc.

I found this problem also using Wordpress on WAMP on winX64.

How can I modify wamp server to refresh web cache? Thanks

After some tests, I realize:

  1. If I delete my “.unity3d” file from FTP server, however client players continue to load my unity videogames…
  2. Unique solution to avoid this I found is to:
    a) every player need to clear theirs browser caches
    b) change “.unity3d” filename and link (fpsGame.unity3d to fpsGame02.unity3d)

The “A” is impossible to use … how can I tell all the player to clear cache each update …
The “B” solution is easy to apply but I ask:

There is any simple solution to tell browser client that unity3d file was update?

I hope in your support …
Thanks

up

well you could edit the html file and add meta tags to prevend caching for example the following

But in this case for example if my project size is 50mb, players need to download all 50mb prj every connection?

Cheers