Is there a way to clear NSURLConnection cache?
I used that to download some strings but I keep getting the same strings even though I changed that from my server.
Is there a way to clear NSURLConnection cache?
I used that to download some strings but I keep getting the same strings even though I changed that from my server.
On
You specify cache policy when you create your NSURLRequest object. Set the cachePolicy property to NSURLRequestReloadIgnoringCacheData or use the initWithURL:cachePolicy:timeoutInterval: initializer. See documentation on cache policy.
You can clear the cache explicitly using:
obj-c
swift