| Package | Description |
|---|---|
| org.aoju.bus.http | |
| org.aoju.bus.http.cache |
| Modifier and Type | Method and Description |
|---|---|
CacheControl |
Response.cacheControl() |
CacheControl |
Request.cacheControl() |
| Modifier and Type | Method and Description |
|---|---|
Request.Builder |
Request.Builder.cacheControl(CacheControl cacheControl) |
| Modifier and Type | Field and Description |
|---|---|
static CacheControl |
CacheControl.FORCE_CACHE
仅使用缓存的缓存控制请求指令,即使缓存的响应已过期。如果响应在缓存中不可用,
或者需要服务器验证,调用将失败
|
static CacheControl |
CacheControl.FORCE_NETWORK
需要对响应进行网络验证的缓存控制请求指令。请注意,缓存可以通过有条件的GET请求来辅助这些请求.
|
| Modifier and Type | Method and Description |
|---|---|
CacheControl |
CacheControl.Builder.build() |
static CacheControl |
CacheControl.parse(Headers headers)
返回
headers的缓存指令。
如果存在Cache-Control和Pragma头文件,则会同时显示它们 |
Copyright © 2020. All rights reserved.