Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for onlyIfCached (0.06 sec)

  1. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

            // 504 code indicates that the Cache is stale
            val onlyIfCached =
              CacheControl.Builder()
                .onlyIfCached()
                .build()
    
            var cacheUrl = request.url
    
            val cacheRequest =
              request.newBuilder()
                .cacheControl(onlyIfCached)
                .cacheUrlOverride(cacheUrl)
                .build()
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Oct 31 09:27:31 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top