我已经asked这个针对Android,但我会拓宽问题,包括在常规Java ...是否有实现HTTP缓存的库?我想更有效地下载我的图片,表彰的If-Modified-Since的,ETag的,等等。
I have already asked about this for android, but I will broaden the question to include java in general... Are there any libraries for implementing a Http cache? I want to download my images more efficiently, honoring If-Modified-Since, etags, etc.
我敢肯定有哪一个可以传递图片的URL,让的lib处理所有重定向或获取在缓存中本地存储的内容库?
I'm sure there is a library to which one can pass the url of the image and let the lib handle all redirects or fetch the locally stored content in a cache?
BR //乔纳斯
看看的这也是这个博客文章。也许他们帮助吗?还看一个类似的问题here.
Take a look at this and also this blog post. Maybe they help? Also look at a similar question here.