是否有任何的Java客户端HttpCahce库? [英] Are there any HttpCahce client libraries for Java?

查看:82
本文介绍了是否有任何的Java客户端HttpCahce库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经<一个href=\"http://stackoverflow.com/questions/7941370/any-alternatives-to-cachinghttpclient-for-android/7954174#7954174\">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 //乔纳斯

推荐答案

看看的也是这个博客文章。也许他们帮助吗?还看一个类似的问题<一href=\"http://stackoverflow.com/questions/1456987/httpclient-4-how-to-capture-last-redirect-url\">here.

Take a look at this and also this blog post. Maybe they help? Also look at a similar question here.

这篇关于是否有任何的Java客户端HttpCahce库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆