public sealed class CacheKeyPolicy : IMessage<CacheKeyPolicy>, IEquatable<CacheKeyPolicy>, IDeepCloneable<CacheKeyPolicy>, IBufferMessage, IMessageMessage containing what to include in the cache key for a request for Cloud CDN.
Implements
IMessage<CacheKeyPolicy>, IEquatable<CacheKeyPolicy>, IDeepCloneable<CacheKeyPolicy>, IBufferMessage, IMessageNamespace
Google.Cloud.Compute.V1Assembly
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 |
|
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> |
|