nicklockwood / iRate

[DEPRECATED]
http://charcoaldesign.co.uk/source/cocoa#irate
Other
4.1k stars 734 forks source link

iTunesServiceURL request takes forever #291

Closed cliren closed 7 years ago

cliren commented 7 years ago

Our app freezes (device: iphone 7+, iOS 10) one in 5 times after the debug line:

iRate is checking %@ to retrieve the App Store details...

Further debugging pointed that changing the cachePolicy as below in iRate.m fixed the issue. Can this be fixed or allow the cache policy to be more configurable?

NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:REQUEST_TIMEOUT];

to

NSURLRequest *request = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:REQUEST_TIMEOUT];