I'm using OkHttp to cache responses to PUT requests that use an "Authorize" header for authentication, and am not seeing any caching.
The Android client code sets the cache like this:
int cacheSize = 10 * 1024 * 1024; // 10 MiB
cache = new Cache(context.getCacheDir(), cacheSize);
client.setCache(cache);
My server is responding with:
Cache-Control: public, max-age=60, s-maxage=60
When I log the cache, getRequestCount() increments, but there are no hits, or any urls in the cache.
Any idea what I'm doing wrong?
Thanks!
GET
. – Jesse Wilson