I am doing following to clear the cache from the WkWebView
. I would like to know how do I confirm that the cache is cleared
var request = new NSUrlRequest (webURL, NSUrlRequestCachePolicy.ReloadIgnoringLocalAndRemoteCacheData, 0);
NSUrlCache.SharedCache.RemoveAllCachedResponses ();
NSUrlCache.SharedCache.MemoryCapacity = 0;
NSUrlCache.SharedCache.DiskCapacity = 0;
Is there a way to print the cache when making the request
From this question looks like you do this (c# version) for iOS 9 and it will print out which records are deleted:
Or for iOS 8, from ShingoFukuyama/WKWebViewTips you could check the subdirectories Cookies, Caches, WebKit in the Library directory are removed.