public final class CacheStrategy extends Object
Selecting a cache strategy may add conditions to the request (like the "If-Modified-Since" header for conditional GETs) or warnings to the cached response (if the cached data is potentially stale).
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CacheStrategy.Factory |
| 限定符和类型 | 字段和说明 |
|---|---|
Response |
cacheResponse
The cached response to return or validate; or null if this call doesn't use a cache.
|
Request |
networkRequest
The request to send on the network, or null if this call doesn't use the network.
|
Copyright © 2022. All rights reserved.