- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for isCacheable (0.3 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/HttpMethod.kt
fun redirectsWithBody(method: String): Boolean = method == "PROPFIND" fun redirectsToGet(method: String): Boolean = method != "PROPFIND" fun isCacheable(requestMethod: String): Boolean = requestMethod == "GET" || requestMethod == "QUERY"
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Fri Oct 03 17:41:45 GMT 2025 - 1.7K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheInterceptor.kt
.networkResponse(networkResponse.stripBody()) .build() if (cache != null) { val cacheNetworkRequest = networkRequest.requestForCache() if (response.promisesBody() && CacheStrategy.isCacheable(response, cacheNetworkRequest)) { // Offer this request to the cache. val cacheRequest = cache.put(response.newBuilder().request(cacheNetworkRequest).build())
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 10.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheStrategy.kt
// This check should be redundant as long as the persistence store is well-behaved and the // rules are constant. if (!isCacheable(cacheResponse, request)) { return CacheStrategy(request, null) } val requestCaching = request.cacheControl if (requestCaching.noCache || hasConditions(request)) {Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 12K bytes - Click Count (0)