Policy: GCP > Network > Backend Service > CDN > Cache Mode
The expected CDN cache mode for the backend service. A backend service uses exactly one cache mode at a time.USE_ORIGIN_HEADERS caches only content with valid origin caching headers, CACHE_ALL_STATIC additionally caches static content that carries no caching headers, and FORCE_CACHE_ALL caches all responses regardless of headers — including private or dynamic content, so use it with care.
Which TTL sub-policies apply depends on this mode: all TTLs apply to CACHE_ALL_STATIC, only Default TTL applies to FORCE_CACHE_ALL, and no TTLs apply to USE_ORIGIN_HEADERS (the origin's headers control caching).
Targets
This policy targets the following resource types:
Primary Policy
This policy is used with the following primary policy:
Controls
Setting this policy configures this control:
Policy Specification
Schema Type | |
|---|---|
Default | |
Valid Values [YAML] |
|
Examples [YAML] |
|
Category
In Your Workspace
Developers
- tmod:@turbot/turbot#/control/categories/security
- tmod:@turbot/gcp-network#/policy/types/backendServiceCdnCacheMode
- turbot graphql policy-type --id "tmod:@turbot/gcp-network#/policy/types/backendServiceCdnCacheMode"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/gcp-network#/policy/types/backendServiceCdnCacheMode"
Get Policy TypeGet Policy Settings
Category URI
Policy Type URI
GraphQL
CLI