我正在使用Picasso将图像加载到容器中.我想缓存在内存中并缓存在磁盘中.在磁盘中缓存图像的最佳方法是什么?什么是http客户端是最好的选择?
这些是我的要求:
如果映像在磁盘上 - >检查缓存间隔(max-age)并在服务器验证图像是否过时.服务器需要在标头中if_none_match: eTag.
if_none_match: eTag
我已经读过这个功能是在OkHttp api中构建的,但我不知道如何使用它.我希望有人能给我发一些链接,文档或者你可以考虑的任何其他不同的方式.
android caching disk httpclient picasso
android ×1
caching ×1
disk ×1
httpclient ×1
picasso ×1