public sealed class BackendBucketCdnPolicyNegativeCachingPolicy : IMessage<BackendBucketCdnPolicyNegativeCachingPolicy>, IEquatable<BackendBucketCdnPolicyNegativeCachingPolicy>, IDeepCloneable<BackendBucketCdnPolicyNegativeCachingPolicy>, IBufferMessage, IMessage
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 webpage provides documentation for the \u003ccode\u003eBackendBucketCdnPolicyNegativeCachingPolicy\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.Compute.V1\u003c/code\u003e namespace, specifically for the .NET environment, with version 3.6.0 being the latest.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBackendBucketCdnPolicyNegativeCachingPolicy\u003c/code\u003e class is designed to manage CDN TTLs for specific HTTP response error codes, inheriting properties from Object and implementing several interfaces, including IMessage, IEquatable, and IDeepCloneable.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties such as \u003ccode\u003eCode\u003c/code\u003e to specify HTTP status codes (e.g., 404, 501) and \u003ccode\u003eTtl\u003c/code\u003e to define the caching duration (in seconds) for those codes, with a maximum TTL of 1800 seconds, and \u003ccode\u003eHasCode\u003c/code\u003e, \u003ccode\u003eHasTtl\u003c/code\u003e to check if the code and ttl values are set respectively.\u003c/p\u003e\n"],["\u003cp\u003eThere is a comprehensive list of available versions of the class, ranging from version 1.0.0 to the latest 3.6.0, which can be accessed by links to the respective version documentation.\u003c/p\u003e\n"],["\u003cp\u003eConstructors for the class include a default constructor, \u003ccode\u003eBackendBucketCdnPolicyNegativeCachingPolicy()\u003c/code\u003e, and a copy constructor, \u003ccode\u003eBackendBucketCdnPolicyNegativeCachingPolicy(BackendBucketCdnPolicyNegativeCachingPolicy other)\u003c/code\u003e, allowing for the creation of new instances based on existing objects.\u003c/p\u003e\n"]]],[],null,[]]