ios - NSURLRequest - get a cached response AND a current response? -
before continue writing own infrastructure - possible execute request, have return if it's cached, , return later if cached version not match current version? kind of functionality built-in nsurlcache/nsurlrequest?
in other words:
- request mything.json
- return cached mything.json
- display user
- return again if cached version not current
- update display
you can query nsurlcache
directly via cachedresponseforrequest:
find out whether in it. can issue nsurlrequest
, see whether comes different. i'm not aware of built-in mechanism give first that's in cache whatever fetched, if determines needs fetched , if fetched different.
Comments
Post a Comment