Using NSURLSession\'s default caching, how do I invalidate the cache for a particular URL?
NSURLSession
I note NSURLCache\'s removeCachedResponseF
NSURLCache
removeCachedResponseF
Here's what has been working for me:
request.cachePolicy = NSURLRequestCachePolicy.ReloadIgnoringCacheData
Here are all the options listed regarding chache policy, so you may find one that better suits your need:
Using Swift 2.2 and Xcode 7.3