How do we disable caching policy in xamarin ios. I have referred to the following links .
NSURLConnection Delegate Returns Null
Please let me know the equivalent code in c # (Xamarin.iOS)
Can we add something in info.plist?
How do we disable caching policy in xamarin ios. I have referred to the following links .
NSURLConnection Delegate Returns Null
Please let me know the equivalent code in c # (Xamarin.iOS)
Can we add something in info.plist?
From iOS 7+ we begin to use NSUrlSession to handle web task instead of NSUrlConnection. Then you can try below code to disable the cache:
NSUrlSessionConfiguration configure = NSUrlSessionConfiguration.DefaultSessionConfiguration;
configure.RequestCachePolicy = NSUrlRequestCachePolicy.ReloadIgnoringLocalCacheData;
configure.URLCache = null;
NSUrlSession session = NSUrlSession.FromConfiguration(configure);