I am developing an iOS application and I want to have a level of offline support, and I try my best to use a local data store or cache that is suitable for use, as it seems that you cannot use these two functions together.
My request is quite simple and does not change only the data that can be restored.
if I used one of the cache policies, I get connection errors and nothing is returned from the cache.
The im after workflow is in the lines below.
-> When connected to the Internet, requests are made locally and objects are stored.
-> if the Internet does not download previously downloaded objects.
source share