Enum BackendBucketCdnPolicy.CacheMode (1.24.0)

public enum BackendBucketCdnPolicy.CacheMode extends Enum<BackendBucketCdnPolicy.CacheMode> implements ProtocolMessageEnum

Specifies the cache setting for all responses from this backend. The possible values are: USE_ORIGIN_HEADERS Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server. FORCE_CACHE_ALL 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. CACHE_ALL_STATIC 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.

Protobuf enum google.cloud.compute.v1.BackendBucketCdnPolicy.CacheMode

Implements

ProtocolMessageEnum

Static Fields

NameDescription
CACHE_ALL_STATIC

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.

CACHE_ALL_STATIC = 355027945;

CACHE_ALL_STATIC_VALUE

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.

CACHE_ALL_STATIC = 355027945;

FORCE_CACHE_ALL

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.

FORCE_CACHE_ALL = 486026928;

FORCE_CACHE_ALL_VALUE

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.

FORCE_CACHE_ALL = 486026928;

INVALID_CACHE_MODE

INVALID_CACHE_MODE = 381295560;

INVALID_CACHE_MODE_VALUE

INVALID_CACHE_MODE = 381295560;

UNDEFINED_CACHE_MODE

A value indicating that the enum field is not set.

UNDEFINED_CACHE_MODE = 0;

UNDEFINED_CACHE_MODE_VALUE

A value indicating that the enum field is not set.

UNDEFINED_CACHE_MODE = 0;

UNRECOGNIZED
USE_ORIGIN_HEADERS

Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server.

USE_ORIGIN_HEADERS = 55380261;

USE_ORIGIN_HEADERS_VALUE

Requires the origin to set valid caching headers to cache content. Responses without these headers will not be cached at Google's edge, and will require a full trip to the origin on every request, potentially impacting performance and increasing load on the origin server.

USE_ORIGIN_HEADERS = 55380261;

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()