LoadFromCacheOrDownload Version Variable Reset?

Hello Unity Community.

When using the WWW.LoadFromCacheOrDownload method there is a version variable that can be set as you can see here. Unity - Scripting API: WWW.LoadFromCacheOrDownload

When this version is set to 1 for instance, like so:

int versionNumber = 1;
WWW downloadedAssets = WWW.LoadFromCacheOrDownload("url of unity3d file", versionNumber);

Then it will download the assets and set that version number to 1. If I run the code again, it will not download it as version 1 has already been downloaded, if I set it to 2, it will download it again as one would expect. However, I am wondering where this variable is stored and how can I reset it. For instance, if I want to download version 1 and overwrite version 2 how would I do that?

I have tried PlayerPrefs.DeleteAll but it does not appear to be stored in there.

Thank you for reading.

I think what you need is the Caching class and the method which would solve your problem is Caching.CleanCache. When in production you should never decrease any version code / number. If you’re still in development and haven’t published your application yet it wouldn’t matter of course.