Show / Hide Table of Contents

Class CacheKeyPolicy

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

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

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.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
System.Nullable<System.Boolean>

IncludeProtocol

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

Declaration
[JsonProperty("includeProtocol")]
public virtual bool? IncludeProtocol { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

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
System.Nullable<System.Boolean>

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
System.Collections.Generic.IList<System.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
System.Collections.Generic.IList<System.String>

Implements

IDirectResponseSchema
In This Article
Back to top