How to use NSURLCache to return cached API responses when offline (iOS App)

前端 未结 2 1195
悲哀的现实
悲哀的现实 2021-02-04 09:09

I\'m hoping someone can shed some light on a few things I\'ve been researching but not making much progress on.

I\'d like to take advantage of NSURLCache to return cache

2条回答
  •  [愿得一人]
    2021-02-04 09:49

    Unless all of your calls are 100% GET and free of side effects or time dependency then this is dangerous.

提交回复
热议问题