Savedata delete when build reloads to server

Hi!

I need too keep old data when reload build to server.
(I use gamejolt so server is not my)

Trying use PlayerPrefs and System.IO.File.WriteAllText(Application.persistentDataPath + “file.”, file), but savedata by this methods delete after reload build to server.

What should I use to keep data?

Application.persistentDataPath is changed every build upload.

Is any way to save data to user pc or I use Application.persistentDataPath incorrectly?

Both are expected to work, assuming IndexedDB is available. Maybe check the browser log for errors.

Are you sure about this? The persistentDataPath is generated based on the url, if that does not change, then persistentDataPath should not change either.

Now I checked. Each new upload build have new url adress. ( I use GameJolt.com)

So what can I do in this case?
I only need to save one variable - userID.
Other data will be in cloud storage. But I don’t want to annoy users by making and entering their ID by hand.

We are seeing the same issue when using Facebook’s Web hosting feature.

I think facebook changes the URL on every build to refresh the browser’s cache.

This is really problematic and makes this feature almost useless. Unity guys must work this out…