Commit 5251bdb6 authored by Willard's avatar Willard

Remove caching (for now)

parent fdf63cc3
...@@ -52,7 +52,7 @@ public class AppUtils { ...@@ -52,7 +52,7 @@ public class AppUtils {
Cache cache = new Cache(httpCacheDirectory, cacheSize); Cache cache = new Cache(httpCacheDirectory, cacheSize);
OkHttpClient client = new OkHttpClient().newBuilder() OkHttpClient client = new OkHttpClient().newBuilder()
.addNetworkInterceptor(REWRITE_CACHE_CONTROL_INTERCEPTOR) //.addNetworkInterceptor(REWRITE_CACHE_CONTROL_INTERCEPTOR)
.cache(cache) .cache(cache)
.addInterceptor(TOKEN_AUTH_INTERCEPTOR) .addInterceptor(TOKEN_AUTH_INTERCEPTOR)
.build(); .build();
...@@ -73,6 +73,7 @@ public class AppUtils { ...@@ -73,6 +73,7 @@ public class AppUtils {
} }
/*
private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = new Interceptor() { private static final Interceptor REWRITE_CACHE_CONTROL_INTERCEPTOR = new Interceptor() {
@Override @Override
public okhttp3.Response intercept(Chain chain) throws IOException { public okhttp3.Response intercept(Chain chain) throws IOException {
...@@ -90,6 +91,7 @@ public class AppUtils { ...@@ -90,6 +91,7 @@ public class AppUtils {
} }
} }
}; };
*/
private static final Interceptor TOKEN_AUTH_INTERCEPTOR = new Interceptor() { private static final Interceptor TOKEN_AUTH_INTERCEPTOR = new Interceptor() {
@Override @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