Retrofit 2 — Force Server Cache Support with Response Interceptor

Every app developer has been in this scenario: the API has a weird or problematic behavior, but the backend developer or evil boss decides to fix it by a hack on the mobile app, instead of getting down to the root of the problem.

In our introduction to response caching tutorial you've learned how critical the server support for faster and more efficient apps is. But what if the server doesn't support it and your backend developer isn't motivated to do anything about it?

In this tutorial, we'll show a partially questionable way of fixing server issues on the client-side with response interceptors.

Retrofit Series Overview


Continue reading

University Enrollment Required

Future Students benefit from value packed videos and tutorials.

Enroll to receive exclusive content or sign in if you’re already a Future Student.

Enroll me for $15/mo

Explore the Library

Find interesting tutorials and solutions for your problems.