Questions tagged [httpresponsecache]
34 questions
0
votes
1 answer
How to update OkHttp cache
In my android application I am caching responses from the server using OkHttp. for that I have implemented code as follows
private class CacheInterceptor implements Interceptor {
Context mContext;
public…

droidev
- 7,352
- 11
- 62
- 94
0
votes
1 answer
Android HttpResponseCache and "Authorization" request header
I'm trying to get HttpResponseCache to cache responses to requests that include an "Authorization" header. I'm including this header because the API I am calling uses basic authentication.
HttpUrlConnection connection =…

Glenn Porter
- 536
- 6
- 18
0
votes
2 answers
Why use reflection for HttpResponseCache?
In the documentation of HttpResponseCache there is a section:
Working With Earlier Releases
This class was added in Android 4.0 (Ice Cream Sandwich). Use
reflection to enable the response cache without impacting earlier
releases:
try {
File…

Thrakbad
- 2,728
- 3
- 23
- 31
0
votes
1 answer
HttpUrlConnection with HttpResponseCache or Volley for better caching implementation in android
I am developing an app for Android in which there are a lot of http requests to server to fetch some data. My response includes a lot of images as well along with texts in JSON format.
I would like to make my application work faster using proper…

Piyush Agarwal
- 25,608
- 8
- 98
- 111