public sealed class BackendServiceCdnPolicyNegativeCachingPolicy : IMessage<BackendServiceCdnPolicyNegativeCachingPolicy>, IEquatable<BackendServiceCdnPolicyNegativeCachingPolicy>, IDeepCloneable<BackendServiceCdnPolicyNegativeCachingPolicy>, IBufferMessage, IMessage
Reference documentation and code samples for the Compute Engine v1 API class BackendServiceCdnPolicyNegativeCachingPolicy.
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 document provides reference documentation for the \u003ccode\u003eBackendServiceCdnPolicyNegativeCachingPolicy\u003c/code\u003e class within the Google Compute Engine v1 API, detailing its functionality for specifying CDN TTLs for response error codes.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eBackendServiceCdnPolicyNegativeCachingPolicy\u003c/code\u003e class is 3.6.0, and it implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows specifying the HTTP status \u003ccode\u003eCode\u003c/code\u003e for which to define a TTL, only permitting specific error codes such as 300, 404, 501, etc, and the corresponding \u003ccode\u003eTtl\u003c/code\u003e (in seconds), up to a maximum of 1800 seconds, for caching responses with that status code.\u003c/p\u003e\n"],["\u003cp\u003eThe document lists all available versions of the \u003ccode\u003eBackendServiceCdnPolicyNegativeCachingPolicy\u003c/code\u003e, ranging from version 1.0.0 to the latest version 3.6.0, with the current version of the displayed page being 2.14.0.\u003c/p\u003e\n"],["\u003cp\u003eThe class has \u003ccode\u003eHasCode\u003c/code\u003e and \u003ccode\u003eHasTtl\u003c/code\u003e properties that tell the user whether or not the code and ttl field has been set respectively.\u003c/p\u003e\n"]]],[],null,[]]