Modifier and Type | Field and 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 and 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 and Description |
---|---|
Request.Builder |
Request.Builder.cacheControl(CacheControl cacheControl)
Sets this request's
Cache-Control header, replacing any cache control headers already
present. |
Copyright © 2019. All rights reserved.