title: how to clean cache JAVA application
body: <p>i have made an application using java.net library to capture the time taken by a webpage to open..example code</p>
  
  <pre><code> HttpURLConnection conn = (HttpURLConnection)url.openConnection();
   for(int i=0; i&lt;20; i++ )
    {
     conn.disconnect();
     conn.connect();
     long starTime = System.currentTimeMillis();
     JEditorPane editorPane = new JEditorPane();
     editorPane.setPage(new URL());
     long elasedTime = System.currentTimeMillis() - starTime;
     System.out.println(elasedTime);
    }
  </code></pre>
  
  <p>but i am facing a problem, the cache!! 
  if i open webpages repeatedly then in some cases it shows time=0 mills...that is certainly not possible, please anybody help me on this!!</p>