- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 12 for noCache (0.06 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-CacheControlCommon.kt
CacheControl .Builder() .noCache() .build() internal fun CacheControl.Companion.commonForceCache() = CacheControl .Builder() .onlyIfCached() .maxStale(Int.MAX_VALUE.seconds) .build() internal fun CacheControl.Builder.commonBuild(): CacheControl = CacheControl( noCache = noCache, noStore = noStore, maxAgeSeconds = maxAgeSeconds,Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 7.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheControlJvmTest.kt
import org.junit.jupiter.api.Test class CacheControlJvmTest { @Test @Throws(Exception::class) fun completeBuilder() { val cacheControl = CacheControl .Builder() .noCache() .noStore() .maxAge(1, TimeUnit.SECONDS) .maxStale(2, TimeUnit.SECONDS) .minFresh(3, TimeUnit.SECONDS) .onlyIfCached() .noTransform() .immutable()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 7.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestCommonTest.kt
fun cacheControl() { val request = Request .Builder() .cacheControl(CacheControl.Builder().noCache().build()) .url("https://square.com") .build() assertThat(request.headers("Cache-Control")).containsExactly("no-cache") assertThat(request.cacheControl.noCache).isTrue() } @Test fun emptyCacheControlClearsAllCacheControlHeaders() { val request = Request
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 11K bytes - Click Count (0) -
ci/devinfra/docker/windows2022/Dockerfile
# Packages, and component versions, can be found here: # https://learn.microsoft.com/en-us/visualstudio/install/workload-component-id-vs-build-tools RUN C:\TEMP\vs_community.exe \ --quiet --wait --norestart --nocache \ --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 \ --add Microsoft.VisualStudio.Workload.NativeDesktop \ --add Microsoft.VisualStudio.Component.VC.14.39.17.9.x86.64 \Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Wed Mar 04 19:50:57 GMT 2026 - 10.4K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt
fun cacheControl() { val request = Request .Builder() .cacheControl(CacheControl.Builder().noCache().build()) .url("https://square.com") .build() assertThat(request.headers("Cache-Control")).containsExactly("no-cache") assertThat(request.cacheControl.noCache).isTrue() } @Test fun emptyCacheControlClearsAllCacheControlHeaders() { val request = Request
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 24.6K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Cache.kt
* the cache, and fetch data directly from the server. To force a full refresh, add the `no-cache` * directive: * * ```java * Request request = new Request.Builder() * .cacheControl(new CacheControl.Builder().noCache().build()) * .url("http://publicobject.com/helloworld.txt") * .build(); * ``` * * If it is only necessary to force a cached response to be validated by the server, use the more
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 26.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
val requestCount: Int = cache.requestCount() } @Test fun cacheControl() { val cacheControl: CacheControl = CacheControl.Builder().build() val noCache: Boolean = cacheControl.noCache val noStore: Boolean = cacheControl.noStore val maxAgeSeconds: Int = cacheControl.maxAgeSeconds val sMaxAgeSeconds: Int = cacheControl.sMaxAgeSeconds
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 49.7K bytes - Click Count (0) -
okhttp/api/jvm/okhttp.api
public final fun isPublic ()Z public final fun maxAgeSeconds ()I public final fun maxStaleSeconds ()I public final fun minFreshSeconds ()I public final fun mustRevalidate ()Z public final fun noCache ()Z public final fun noStore ()Z public final fun noTransform ()Z public final fun onlyIfCached ()Z public static final fun parse (Lokhttp3/Headers;)Lokhttp3/CacheControl; public final fun sMaxAgeSeconds ()I
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 72.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/cache/CacheStrategy.kt
// rules are constant. if (!isCacheable(cacheResponse, request)) { return CacheStrategy(request, null) } val requestCaching = request.cacheControl if (requestCaching.noCache || hasConditions(request)) { return CacheStrategy(request, null) } val responseCaching = cacheResponse.cacheControl val ageMillis = cacheResponseAge()Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 12.1K bytes - Click Count (0) -
okhttp/api/android/okhttp.api
public final fun isPublic ()Z public final fun maxAgeSeconds ()I public final fun maxStaleSeconds ()I public final fun minFreshSeconds ()I public final fun mustRevalidate ()Z public final fun noCache ()Z public final fun noStore ()Z public final fun noTransform ()Z public final fun onlyIfCached ()Z public static final fun parse (Lokhttp3/Headers;)Lokhttp3/CacheControl; public final fun sMaxAgeSeconds ()I
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 72.3K bytes - Click Count (0)