View Source GoogleApi.Compute.V1.Model.CacheKeyPolicy (google_api_compute v0.56.0)

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

Attributes

  • includeHost (type: boolean(), default: nil) - If true, requests to different hosts will be cached separately.
  • includeHttpHeaders (type: list(String.t), default: nil) - Allows HTTP request headers (by name) to be used in the cache key.
  • includeNamedCookies (type: list(String.t), default: nil) - 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.
  • includeProtocol (type: boolean(), default: nil) - If true, http and https requests will be cached separately.
  • includeQueryString (type: boolean(), default: nil) - 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.
  • queryStringBlacklist (type: list(String.t), default: nil) - 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.
  • queryStringWhitelist (type: list(String.t), default: nil) - 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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Compute.V1.Model.CacheKeyPolicy{
  includeHost: boolean() | nil,
  includeHttpHeaders: [String.t()] | nil,
  includeNamedCookies: [String.t()] | nil,
  includeProtocol: boolean() | nil,
  includeQueryString: boolean() | nil,
  queryStringBlacklist: [String.t()] | nil,
  queryStringWhitelist: [String.t()] | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.