Does anyone know how I remove cache from the following NSURLSession call? Tthe call below doesn’t bring back the updated son.
let endpoint: String = "https:/whatever.com/jsonfile.json
let session = NSURLSession.sharedSession()
let url = NSURL(string: endpoint)!
session.dataTaskWithURL(url, completionHandler: { ( data: NSData?, response: NSURLResponse?, error: NSError?) -> Void in
/
guard let realResponse = response as? NSHTTPURLResponse where
realResponse.statusCode == 200 else {
print("Not a 200 response")
return
}