Show / Hide Table of Contents

Class CacheKeyPolicy

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

Inheritance
object
CacheKeyPolicy
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.Compute.alpha.Data
Assembly: Google.Apis.Compute.alpha.dll
Syntax
public class CacheKeyPolicy : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
string

IncludeHost

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

Declaration
[JsonProperty("includeHost")]
public virtual bool? IncludeHost { get; set; }
Property Value
Type Description
bool?

IncludeHttpHeaders

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

Declaration
[JsonProperty("includeHttpHeaders")]
public virtual IList<string> IncludeHttpHeaders { get; set; }
Property Value
Type Description
IList<string>

IncludeNamedCookies

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.

Declaration
[JsonProperty("includeNamedCookies")]
public virtual IList<string> IncludeNamedCookies { get; set; }
Property Value
Type Description
IList<string>

IncludeProtocol

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

Declaration
[JsonProperty("includeProtocol")]
public virtual bool? IncludeProtocol { get; set; }
Property Value
Type Description
bool?

IncludeQueryString

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.

Declaration
[JsonProperty("includeQueryString")]
public virtual bool? IncludeQueryString { get; set; }
Property Value
Type Description
bool?

QueryStringBlacklist

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. '&amp;' and '=' will be percent encoded and not treated as delimiters.

Declaration
[JsonProperty("queryStringBlacklist")]
public virtual IList<string> QueryStringBlacklist { get; set; }
Property Value
Type Description
IList<string>

QueryStringWhitelist

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. '&amp;' and '=' will be percent encoded and not treated as delimiters.

Declaration
[JsonProperty("queryStringWhitelist")]
public virtual IList<string> QueryStringWhitelist { get; set; }
Property Value
Type Description
IList<string>

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX