I am new to nsurlcache
. And my goal is to show first my cache data and show it to my display and after that, I want to access the network and replace the cache data and reload my display.
This is what I'm using:
mutableURLRequest.cachePolicy = NSURLRequestCachePolicy.ReturnCacheDataElseLoad
Can someone help me or give me a better idea how to achieve my goal?