public enum CachePolicy.Types.CacheModeReference documentation and code samples for the Compute Engine v1 API enum CachePolicy.Types.CacheMode.
Specifies the cache setting for all responses from this route. If not
specified, Cloud CDN uses CACHE_ALL_STATIC mode.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Fields |
|
|---|---|
| Name | Description |
CacheAllStatic |
Automatically cache static content, including common image formats, media (video and audio), and web assets (JavaScript and CSS). Requests and responses that are marked as uncacheable, as well as dynamic content (including HTML), will not be cached. |
ForceCacheAll |
Cache all content, ignoring any "private", "no-store" or "no-cache" directives in Cache-Control response headers. Warning: this may result in Cloud CDN caching private, per-user (user identifiable) content. |
UndefinedCacheMode |
A value indicating that the enum field is not set. |
UseOriginHeaders |
Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at the edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. |