I am parsing an xml successfuly using NSURLRequest and when connectionDidFinishLoading, xmlParser does the job. Problem is that if I modify remote xml file and fire again the connection, received data is the old one until I will fire it again random number of times until is finally been updated! It happens on device and also on simulator but funny issue is that on simulator, when there is no connection, sometimes acts as described before, with residual contents and console debugging messages as if connection exists… If code could help please advise. Thank you!
I am parsing an xml successfuly using NSURLRequest and when connectionDidFinishLoading, xmlParser does the
Share
That’s because of your default cache policy in
NSURLConnection. CheckNSURLConnectionsdocs or just add this in yourNSURLRequestcreation.The
NSURLRequestReloadIgnoringLocalAndRemoteCacheDatamight be the key for your issue.