Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for noCache (0.15 sec)

  1. okhttp/src/test/java/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()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. okhttp/src/main/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 {
      return CacheControl(
        noCache = noCache,
        noStore = noStore,
        maxAgeSeconds = maxAgeSeconds,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

      internal var headerValue: String?,
    ) {
      @JvmName("-deprecated_noCache")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "noCache"),
        level = DeprecationLevel.ERROR,
      )
      fun noCache(): Boolean = noCache
    
      @JvmName("-deprecated_noStore")
      @Deprecated(
        message = "moved to val",
        replaceWith = ReplaceWith(expression = "noStore"),
        level = DeprecationLevel.ERROR,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 10K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/CacheControlTest.kt

    class CacheControlTest {
      @Test
      @Throws(Exception::class)
      fun emptyBuilderIsEmpty() {
        val cacheControl = CacheControl.Builder().build()
        assertThat(cacheControl.toString()).isEqualTo("")
        assertThat(cacheControl.noCache).isFalse()
        assertThat(cacheControl.noStore).isFalse()
        assertThat(cacheControl.maxAgeSeconds).isEqualTo(-1)
        assertThat(cacheControl.sMaxAgeSeconds).isEqualTo(-1)
        assertThat(cacheControl.isPrivate).isFalse()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/RequestCommonTest.kt

      @Test
      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 =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  6. okhttp/src/main/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()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/RequestTest.kt

      @Test
      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 =
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        val directory: File = cache.directory()
      }
    
      @Test @Disabled
      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()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  9. ci/devinfra/docker/windows/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 \
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Aug 20 13:57:04 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. okhttp/src/test/java/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
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top