mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
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