title: How to clear UWP WebView cache?
body: <p>I am using WebView in my UWP application and I want to clear the cache while closing the app, is there a way? I know I can disable cache by adding headers into my HttpRequestMessage as mentioned in <a href="https://stackoverflow.com/questions/33391437/universal-windows-10-webview-how-to-clear-disable-cache">this</a> link. However, I want to be able to clear the cache upon app exit. </p>
  
  <p>I did try WebView.ClearTemporaryWebDataAsync() without any success. 
  Once something is cached it normally remains throughout the app.
  Any help is appreciated, thanks.</p>
  
  <p>Edit : Adding code snippet</p>
  
  <pre><code>var webView = new WebView();  
  webView.Navigate(new Uri("http://refreshyourcache.com/en/cache-test/"));  
  await WebView.ClearTemporaryWebDataAsync(); //static method  
  webView.Navigate(new Uri("http://refreshyourcache.com/en/cache-test/"));
  </code></pre>
  
  <p>I expect the static method to clear cache and when I navigate to same page again its cache should be cleared. Am I doing something wrong here? </p>