Did iOS 8 break NSURLCache?

前端 未结 3 2008
粉色の甜心
粉色の甜心 2021-01-31 21:08

Long story short, I just updated to Xcode 6 to check how my app works on iOS 8. I noticed that it doesn\'t use the cache even though it should. I\'m using AFNetworking setting t

3条回答
  •  抹茶落季
    2021-01-31 22:06

    NSURLConnection is not working properly. It will store responses properly, but it never purges the cache (diskCapacity is ignored) on iOS 8.0 so the cache will grow without limit, though manually clearing the cache does work. This is fixed in iOS 8.1, although removeCachedResponseForRequest: still does not work.

    Also, if you specify a cache size smaller than 5 megs, it will not cache anything.

提交回复
热议问题