I'm trying to implement caching in my app, I'm using NSURLSession with background configuration for most of my networking needs and it works great but then I'm adding a cache object the session disregards it and always goes to the server
I tried to use default session instance with cache and the system uses the cache
I've read the documentation several times before but there's no mention of disregarding the cache object for background tasks
Does anyone knows if it's a bug or something
Wow i asked this question a long time ago, and still no answers.
Tell you the truth, i ended up using a DTS token for this one.
Turns out that NSURLSession background configuration don't support cashing at all, no matter what task you use.
Its a design decision by apple that's badly documented.
Heres part of the DTS replay that i received: