| Package | Description |
|---|---|
| com.google.api.services.compute.model |
| Modifier and Type | Method and Description |
|---|---|
CachePolicy |
CachePolicy.clone() |
CachePolicy |
HttpRouteAction.getCachePolicy()
Specifies the cache policy configuration for matched traffic.
|
CachePolicy |
CachePolicy.set(String fieldName,
Object value) |
CachePolicy |
CachePolicy.setCacheBypassRequestHeaderNames(List<String> cacheBypassRequestHeaderNames)
Bypass the cache when the specified request headers are matched by name, e.g.
|
CachePolicy |
CachePolicy.setCacheKeyPolicy(CachePolicyCacheKeyPolicy cacheKeyPolicy)
The cache key configuration.
|
CachePolicy |
CachePolicy.setCacheMode(String cacheMode)
Specifies the cache setting for all responses from this route.
|
CachePolicy |
CachePolicy.setClientTtl(Duration clientTtl)
Specifies a separate client (e.g.
|
CachePolicy |
CachePolicy.setDefaultTtl(Duration defaultTtl)
Specifies the default TTL for cached content for responses that do not have an existing valid
TTL (max-age or s-maxage).
|
CachePolicy |
CachePolicy.setMaxTtl(Duration maxTtl)
Specifies the maximum allowed TTL for cached content.
|
CachePolicy |
CachePolicy.setNegativeCaching(Boolean negativeCaching)
Negative caching allows per-status code TTLs to be set, in order to apply fine-grained caching
for common errors or redirects.
|
CachePolicy |
CachePolicy.setNegativeCachingPolicy(List<CachePolicyNegativeCachingPolicy> negativeCachingPolicy)
Sets a cache TTL for the specified HTTP status code.
|
CachePolicy |
CachePolicy.setRequestCoalescing(Boolean requestCoalescing)
If true then Cloud CDN will combine multiple concurrent cache fill requests into a small number
of requests to the origin.
|
CachePolicy |
CachePolicy.setServeWhileStale(Duration serveWhileStale)
Serve existing content from the cache (if available) when revalidating content with the origin,
or when an error is encountered when refreshing the cache.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRouteAction |
HttpRouteAction.setCachePolicy(CachePolicy cachePolicy)
Specifies the cache policy configuration for matched traffic.
|
Copyright © 2011–2026 Google. All rights reserved.