3
votes

I use OkHttp 3 on Android 4.4.

Most answers I found are about caching the content of the HTTP responses of some request.

I want to cache the requests themselves. So when I am offline for some time and then the connection gets better, all requests are sent.

How do I do this with OkHttp? Is there a build-in request queue?

I read about silent-retry but am not sure how it behaves exactly. What if my connection is bad for e.g. 6h? What if I have 30 pending requests?

1
I think you might have to implement something yourself or extend OkHttp, I don't think OkHttp will do something like this for you.JonasCz

1 Answers

1
votes

You might want to look at Tape.