title: Why android HttpURLConnection cache the inputstream results?
body: <p>i'm trying to get a xml file but it seems to be cached.
  there's my code:</p>
  
  <pre><code>URL url = new URL("http://delibere.asl3.liguria.it/SVILUPPO/elenco_xml.asp?rand=" + new Random().nextInt()+"&amp;Oggetto=" + text +"&amp;TipoDocumento="+tipoDocumento);
  HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();
  urlConn.setDefaultUseCaches(false); 
  urlConn.setAllowUserInteraction(true);
  urlConn.setDoInput(true);
  urlConn.setDoOutput(true);   
  urlConn.setUseCaches(false);
  urlConn.setRequestMethod("GET");
  urlConn.setRequestProperty("Pragma", "no-cache");
  urlConn.setRequestProperty("Cache-Control", "no-cache");
  urlConn.setRequestProperty("Expires", "-1");
  urlConn.setRequestProperty("Content-type", "text/xml");     
  urlConn.setRequestProperty("Connection","Keep-Alive"); 
  DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
  DocumentBuilder db = dbf.newDocumentBuilder();
  InputStream is = new BufferedInputStream(url.openStream());
  Document doc = db.parse(is);
  doc.getDocumentElement().normalize();
  </code></pre>
  
  <p>thanks!</p>