开发者

Caching Images?

开发者 https://www.devze.com 2023-03-13 05:13 出处:网络
I am developing a Food Recommendation Engine. We have a lot of photos开发者_高级运维 which has to be downloaded from the server during the usage of the Application.

I am developing a Food Recommendation Engine. We have a lot of photos开发者_高级运维 which has to be downloaded from the server during the usage of the Application.

Do we need to cache or store the images locally just to reduce the network activity ?


If the data from the server is not going to change then you should store them but if the data is changed then you can do two things

  1. On the server keep a last updated data date and depending on that always fetch that date from server, check if the last updated data is not obsolete if yes then fetch again or there is no need
  2. Second approach is Store as cache and fetch every time you start your app
0

精彩评论

暂无评论...
验证码 换一张
取 消