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