Compute Engine v1 API - Class CacheKeyPolicy (2.5.0)

public sealed class CacheKeyPolicy : IMessage<CacheKeyPolicy>, IEquatable<CacheKeyPolicy>, IDeepCloneable<CacheKeyPolicy>, IBufferMessage, IMessage

Reference documentation and code samples for the Compute Engine v1 API class CacheKeyPolicy.

Message containing what to include in the cache key for a request for Cloud CDN.

Inheritance

Object > CacheKeyPolicy

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

CacheKeyPolicy()

public CacheKeyPolicy()

CacheKeyPolicy(CacheKeyPolicy)

public CacheKeyPolicy(CacheKeyPolicy other)
Parameter
NameDescription
otherCacheKeyPolicy

Properties

HasIncludeHost

public bool HasIncludeHost { get; }

Gets whether the "include_host" field is set

Property Value
TypeDescription
Boolean

HasIncludeProtocol

public bool HasIncludeProtocol { get; }

Gets whether the "include_protocol" field is set

Property Value
TypeDescription
Boolean

HasIncludeQueryString

public bool HasIncludeQueryString { get; }

Gets whether the "include_query_string" field is set

Property Value
TypeDescription
Boolean

IncludeHost

public bool IncludeHost { get; set; }

If true, requests to different hosts will be cached separately.

Property Value
TypeDescription
Boolean

IncludeHttpHeaders

public RepeatedField<string> IncludeHttpHeaders { get; }

Allows HTTP request headers (by name) to be used in the cache key.

Property Value
TypeDescription
RepeatedField<String>

IncludeNamedCookies

public RepeatedField<string> IncludeNamedCookies { get; }

Allows HTTP cookies (by name) to be used in the cache key. The name=value pair will be used in the cache key Cloud CDN generates.

Property Value
TypeDescription
RepeatedField<String>

IncludeProtocol

public bool IncludeProtocol { get; set; }

If true, http and https requests will be cached separately.

Property Value
TypeDescription
Boolean

IncludeQueryString

public bool IncludeQueryString { get; set; }

If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.

Property Value
TypeDescription
Boolean

QueryStringBlacklist

public RepeatedField<string> QueryStringBlacklist { get; }

Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

Property Value
TypeDescription
RepeatedField<String>

QueryStringWhitelist

public RepeatedField<string> QueryStringWhitelist { get; }

Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.

Property Value
TypeDescription
RepeatedField<String>