public sealed class BackendBucketCdnPolicyNegativeCachingPolicy : IMessage<BackendBucketCdnPolicyNegativeCachingPolicy>, IEquatable<BackendBucketCdnPolicyNegativeCachingPolicy>, IDeepCloneable<BackendBucketCdnPolicyNegativeCachingPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class BackendBucketCdnPolicyNegativeCachingPolicy.
The HTTP status code to define a TTL against. Only HTTP status codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451 and 501 are can be specified as values, and you cannot specify a status code more than once.
The TTL (in seconds) for which to cache responses with the corresponding status code. The maximum allowed value is 1800s (30 minutes), noting that infrequently accessed objects may be evicted from the cache before the defined TTL.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-08 UTC."],[[["\u003cp\u003eThis page provides documentation for the \u003ccode\u003eBackendBucketCdnPolicyNegativeCachingPolicy\u003c/code\u003e class within the Google Cloud Compute Engine v1 API, detailing its functionality for managing CDN TTLs for error responses.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackendBucketCdnPolicyNegativeCachingPolicy\u003c/code\u003e class is designed to specify time-to-live (TTL) durations for specific HTTP status codes, including error codes such as 404, 405, and 501.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version documented is 3.6.0, with a range of previous versions from 1.0.0 to 3.5.0 also listed, allowing access to documentation for each version's specific implementation.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of this class include \u003ccode\u003eCode\u003c/code\u003e to define the HTTP status code and \u003ccode\u003eTtl\u003c/code\u003e to set the caching duration in seconds, with the code being limited to certain status codes and the TTL being limited to 1800 seconds.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from object and implements various interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing comprehensive functionality for use in .NET applications.\u003c/p\u003e\n"]]],[],null,[]]