Commit 5251bdb6 authored by Willard's avatar Willard

Remove caching (for now)

parent fdf63cc3
......@@ -52,7 +52,7 @@ public class AppUtils {
Cache cache = new Cache(httpCacheDirectory, cacheSize);
OkHttpClient client = new OkHttpClient().newBuilder()
.addNetworkInterceptor(REWRITE_CACHE_CONTROL_INTERCEPTOR)
//.addNetworkInterceptor(REWRITE_CACHE_CONTROL_INTERCEPTOR)
.cache(cache)
.addInterceptor(TOKEN_AUTH_INTERCEPTOR)
.build();
......@@ -73,6 +73,7 @@ public class AppUtils {
}
/*
private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = new Interceptor() {
@Override
public okhttp3.Response intercept(Chain chain) throws IOException {
......@@ -90,6 +91,7 @@ public class AppUtils {
}
}
};
*/
private static final Interceptor TOKEN_AUTH_INTERCEPTOR = new Interceptor() {
@Override
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment