Does iOS block a URL if we couldn't connect to the URL for 'n' times?

107 Views Asked by At

Please look at this scenario

  1. The app access a URL. The server is down so the request times out.
  2. This process is repeated for 'n' times.
  3. The server is up and running now. But inside the app the URL returns the same result.
  4. Tries in Safari and no response but seems to work fine in other devices.
  5. The app is restarted and no use.
  6. The device is restarted and the URL start working fine.

Does the iOS blocks a URL if it couldn't be accessed for 'n' times? And the restart resets everything?

1

There are 1 best solutions below

1
On

To expand on @gnasher729 try this and see if it works

NSURLRequest *urlRequest = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:timeOut];