What am I missing while fetching the data for caching purpose using Retrofit that it gives me 504 Unsatisfiable Request
I am trying to implement cache request using Retrofit by fetching random joke from an API and displaying it in Textview but when I click the button it keeps giving me '504 Unsatisfiable Request(only-if-cached). Base url of my API is following one:- api and following are the classes.
APIService.java
import com.example.cachingretrofit.JokeResponse
import retrofit2.http.GET
import io.reactivex.rxjava3.core.Observable...