//okhttp/okhttp3/CacheControl/onlyIfCached
onlyIfCached¶
[common]\ expect val onlyIfCached: Boolean
This field’s name "only-if-cached" is misleading. It actually means "do not use the network". It is set by a client who only wants to make a request if it can be fully satisfied by the cache. Cached responses that would require validation (ie. conditional gets) are not permitted if this header is set.
[jvm, nonJvm]\ [jvm]\
@get:JvmName(name = "onlyIfCached")
actual val onlyIfCached: Boolean
[nonJvm]\ actual val onlyIfCached: Boolean