Skip to content
Pascal Pfiffner edited this page Apr 12, 2016 · 1 revision

When making repeated calls to Uber's ride status endpoint (/V1/REQUESTS/{REQUEST_ID}) it may return a cached response. To avoid this set the .ReloadIgnoringLocalCacheData cache policy for your request; the built-in convenience request method already does this:

let request = oauth2.request(forURL: <# resource URL #>)
oauth2.session.dataTaskWithRequest(request) { data, resp, error in
    ...
}
Clone this wiki locally