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.
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.
InvalidCacheMode
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 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-24 UTC."],[[["This document outlines the different versions of the `CacheMode` enum within the `Google.Cloud.Compute.V1` namespace, with version 3.6.0 being the latest."],["The `CacheMode` enum offers settings for caching responses from a backend, including `USE_ORIGIN_HEADERS`, `FORCE_CACHE_ALL`, and `CACHE_ALL_STATIC`, each with different caching behaviors."],["The `USE_ORIGIN_HEADERS` setting relies on the origin server to define caching rules, while `FORCE_CACHE_ALL` overrides these rules to cache all content, and `CACHE_ALL_STATIC` caches common static file types automatically."],["The document provides links to documentation for the `CacheMode` enum across various versions, starting from 1.0.0 up to the latest 3.6.0."],["There are also two additional possible fields in this enum : `UndefinedCacheMode` and `InvalidCacheMode`, with the former being a value that indicates that the enum field is not set."]]],[]]