class Builder
Builds a Cache-Control request header.
Builder()
Builds a |
fun build(): CacheControl |
|
fun immutable(): CacheControl.Builder |
|
fun maxAge(maxAge: Int, timeUnit: TimeUnit): CacheControl.Builder
Sets the maximum age of a cached response. If the cache response's age exceeds |
|
fun maxStale(maxStale: Int, timeUnit: TimeUnit): CacheControl.Builder
Accept cached responses that have exceeded their freshness lifetime by up to |
|
fun minFresh(minFresh: Int, timeUnit: TimeUnit): CacheControl.Builder
Sets the minimum number of seconds that a response will continue to be fresh for. If the
response will be stale when |
|
fun noCache(): CacheControl.Builder
Don't accept an unvalidated cached response. |
|
fun noStore(): CacheControl.Builder
Don't store the server's response in any cache. |
|
fun noTransform(): CacheControl.Builder
Don't accept a transformed response. |
|
fun onlyIfCached(): CacheControl.Builder
Only accept the response if it is in the cache. If the response isn't cached, a |