public sealed class BackendServiceCdnPolicyNegativeCachingPolicy : IMessage<BackendServiceCdnPolicyNegativeCachingPolicy>, IEquatable<BackendServiceCdnPolicyNegativeCachingPolicy>, IDeepCloneable<BackendServiceCdnPolicyNegativeCachingPolicy>, 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"]],[["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 `BackendServiceCdnPolicyNegativeCachingPolicy` class within the `Google.Cloud.Compute.V1` namespace, detailing its properties and methods for managing CDN caching of error responses."],["The latest version documented is 3.6.0, but multiple other versions are available, ranging from 1.0.0 to 3.5.0, with each linked to its respective documentation."],["The `BackendServiceCdnPolicyNegativeCachingPolicy` class allows specification of Time-To-Live (TTL) durations for caching responses based on specific HTTP status codes, allowing for codes 300, 301, 302, 307, 308, 404, 405, 410, 421, 451, and 501."],["`BackendServiceCdnPolicyNegativeCachingPolicy` class has properties `Code` to set the Http code, and `Ttl` to determine the time, in seconds, the corresponding status should be cached, with a maximum value of 1800 seconds."],["The class inherits from several interfaces including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and has inherited members from `Object` like `GetHashCode`, `GetType`, `MemberwiseClone`, and `ToString`."]]],[]]