swift - ios app, response header without caching -
first of all, using xamarin forms custom xamarin ios renderer webview. but solutions in swift or objectiv-c welcome.
my webserver sends header (like basketamount , login-status). need handle headers in ios app.
so, created custom renderer, got header via cache:
var cache = nsurlcache.sharedcache.cachedresponseforrequest(webview.request); var response = (nshttpurlresponse)cache.response; headers = response.allheaderfields;
but not solution me!
the headers can changed every call. need current headers. tried clean current cache every call, if (or add timestamp in url) "null/nil" cachedresponseforrequest
is there solution? can dirty, have work. :)
thanks help!
Comments
Post a Comment