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);

Seeing the same problem

1 Answer

1

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.