| Package | Description |
|---|---|
| okhttp3 |
| Modifier and Type | Method and Description |
|---|---|
CacheControl |
CacheControl.Builder.maxAge(int maxAge, TimeUnit
Sets the maximum age of a cached response.
|
CacheControl |
CacheControl.Builder.maxStale(int maxStale, TimeUnit
Accept cached responses that have exceeded their freshness lifetime by up to
maxStale.
|
CacheControl |
CacheControl.Builder.minFresh(int minFresh, TimeUnit
Sets the minimum number of seconds that a response will continue to be fresh for.
|
CacheControl |
CacheControl.Builder.noCache()
Don't accept an unvalidated cached response.
|
CacheControl |
CacheControl.Builder.noStore()
Don't store the server's response in any cache.
|
CacheControl |
CacheControl.Builder.noTransform()
Don't accept a transformed response.
|
CacheControl |
CacheControl.Builder.onlyIfCached()
Only accept the response if it is in the cache.
|