Class CacheKeyPolicy (2.0.0)

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

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
Name Description
other CacheKeyPolicy

Properties

HasIncludeHost

public bool HasIncludeHost { get; }

Gets whether the "include_host" field is set

Property Value
Type Description
Boolean

HasIncludeProtocol

public bool HasIncludeProtocol { get; }

Gets whether the "include_protocol" field is set

Property Value
Type Description
Boolean

HasIncludeQueryString

public bool HasIncludeQueryString { get; }

Gets whether the "include_query_string" field is set

Property Value
Type Description
Boolean

IncludeHost

public bool IncludeHost { get; set; }

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

Property Value
Type Description
Boolean

IncludeHttpHeaders

public RepeatedField<string> IncludeHttpHeaders { get; }

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

Property Value
Type Description
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
Type Description
RepeatedField<String>

IncludeProtocol

public bool IncludeProtocol { get; set; }

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

Property Value
Type Description
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
Type Description
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
Type Description
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
Type Description
RepeatedField<String>