Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for sMaxAgeSeconds (0.2 sec)

  1. okhttp/src/jvmTest/kotlin/okhttp3/CacheControlTest.kt

        assertThat(cacheControl.noCache).isFalse()
        assertThat(cacheControl.noStore).isFalse()
        assertThat(cacheControl.maxAgeSeconds).isEqualTo(-1)
        assertThat(cacheControl.sMaxAgeSeconds).isEqualTo(-1)
        assertThat(cacheControl.isPrivate).isFalse()
        assertThat(cacheControl.isPublic).isFalse()
        assertThat(cacheControl.mustRevalidate).isFalse()
        assertThat(cacheControl.maxStaleSeconds).isEqualTo(-1)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-CacheControlCommon.kt

            if (noCache) append("no-cache, ")
            if (noStore) append("no-store, ")
            if (maxAgeSeconds != -1) append("max-age=").append(maxAgeSeconds).append(", ")
            if (sMaxAgeSeconds != -1) append("s-maxage=").append(sMaxAgeSeconds).append(", ")
            if (isPrivate) append("private, ")
            if (isPublic) append("public, ")
            if (mustRevalidate) append("must-revalidate, ")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.2K bytes
    - Viewed (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/CacheControlJvmTest.kt

        assertThat(cacheControl.noTransform).isTrue()
        assertThat(cacheControl.immutable).isTrue()
    
        // These members are accessible to response headers only.
        assertThat(cacheControl.sMaxAgeSeconds).isEqualTo(-1)
        assertThat(cacheControl.isPrivate).isFalse()
        assertThat(cacheControl.isPublic).isFalse()
        assertThat(cacheControl.mustRevalidate).isFalse()
      }
    
      @Test
      @Throws(Exception::class)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.4K bytes
    - Viewed (0)
Back to top