- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for isCacheable (0.1 sec)
-
okhttp/src/main/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)) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:24:48 UTC 2024 - 12K bytes - Viewed (0) -
okhttp/src/main/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())
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Fri Mar 22 07:09:21 UTC 2024 - 10.2K bytes - Viewed (0)