forked from Archives/Athou_commafeed
disable http cache
This commit is contained in:
@@ -30,6 +30,8 @@ public class HttpGetter {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
HttpGet httpget = new HttpGet(url);
|
HttpGet httpget = new HttpGet(url);
|
||||||
|
httpget.addHeader("Pragma", "No-cache");
|
||||||
|
httpget.addHeader("Cache-Control", "no-cache");
|
||||||
HttpResponse response = httpclient.execute(httpget);
|
HttpResponse response = httpclient.execute(httpget);
|
||||||
HttpEntity entity = response.getEntity();
|
HttpEntity entity = response.getEntity();
|
||||||
if (entity != null) {
|
if (entity != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user