title: How to clear volley cache of a url in Android
body: <p><strong>Hello Guys</strong>, I happen to have a project, in which i used the Volley library. I then discovered after volley gets the response from a url i tends to cache it. So all i want now is to clear the cache for the specific url.</p>
  
  <p>I tried this:</p>
  
  <pre><code>    AppController.getInstance().getRequestQueue().getCache().remove(url);
  </code></pre>
  
  <p>and also this:</p>
  
  <pre><code>    AppController.getInstance().getRequestQueue().getCache().invalidate(url, true);
  </code></pre>
  
  <p>I got this answer <a href="https://stackoverflow.com/questions/24464610/how-to-clear-the-volley-cache-automatically">here</a></p>
  
  <p>Thanks in anticipitation.</p>