- Home /
Problem is not reproducible or outdated
Why i always download assets from my server? WWW.LoadFromCacheOrDownload
I wan't us the WWW.LoadFromCacheOrDownload, but now, it download resource every times.
I don't know how to use it method.
I's that bugs?
my code is :
modules[index].loader = WWW.LoadFromCacheOrDownload(url, 1);
Answer by Bunny83 · Aug 21, 2018 at 08:02 PM
The question is not very detailed. It's not clear what you're actually trying to download. This method only works with AssetBundles. It does not work for arbitrary data you may download from your server. though apart from that depending on the actual target platform normal caching may apply (especially on webGL builds). Though normal caching may depends on what your server caching settings are. The server may provide ETags for files to identify resource versions.
This question is to unspecific to be answered. Since it's already 7+ years old i will close the question now.
Note: Noone will have the same question or the same problem as you most likely try to load a different file from a different server using a different URL as the OP did. If you have a similar problem, ask a seperate question and please be more specific.
Follow this Question
Related Questions
WWW class with authentication 0 Answers
WWW.LoadFromCacheOrDownload Unity fatal error 1 Answer
Automating versioning for WWW.LoadFromCacheOrDownload 1 Answer
Access raw AssetBundle data using UnityWebRequest? 4 Answers
Caching AssetBundle downloaded previously without using WWW.LoadFromCacheOrDownload 0 Answers