| Modifier and Type | Field | Description |
|---|---|---|
static CacheControl |
CacheControl.FORCE_CACHE |
Cache control request directives that uses the cache only, even if the cached response is
stale.
|
static CacheControl |
CacheControl.FORCE_NETWORK |
Cache control request directives that require network validation of responses.
|
| Modifier and Type | Method | Description |
|---|---|---|
CacheControl |
CacheControl.Builder.build() |
|
CacheControl |
Request.cacheControl() |
Returns the cache control directives for this response.
|
CacheControl |
Response.cacheControl() |
Returns the cache control directives for this response.
|
static CacheControl |
CacheControl.parse(Headers headers) |
Returns the cache directives of
headers. |
| Modifier and Type | Method | Description |
|---|---|---|
Request.Builder |
Request.Builder.cacheControl(CacheControl cacheControl) |
Sets this request's
Cache-Control header, replacing any cache control headers already
present. |
Copyright © 2020. All rights reserved.