Class CacheKeyPolicy (1.4.0)

CacheKeyPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

Attributes

NameDescription
include_host bool
If true, requests to different hosts will be cached separately. This field is a member of oneof_ _include_host.
include_http_headers Sequence[str]
Allows HTTP request headers (by name) to be used in the cache key.
include_named_cookies Sequence[str]
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.
include_protocol bool
If true, http and https requests will be cached separately. This field is a member of oneof_ _include_protocol.
include_query_string bool
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. This field is a member of oneof_ _include_query_string.
query_string_blacklist Sequence[str]
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.
query_string_whitelist Sequence[str]
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.