CacheKeyPolicyResponse

data class CacheKeyPolicyResponse(val includeHost: Boolean, val includeHttpHeaders: List<String>, val includeNamedCookies: List<String>, val includeProtocol: Boolean, val includeQueryString: Boolean, val queryStringBlacklist: List<String>, val queryStringWhitelist: List<String>)

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

Constructors

Link copied to clipboard
fun CacheKeyPolicyResponse(includeHost: Boolean, includeHttpHeaders: List<String>, includeNamedCookies: List<String>, includeProtocol: Boolean, includeQueryString: Boolean, queryStringBlacklist: List<String>, queryStringWhitelist: List<String>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard

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

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

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.