Class CacheKeyPolicy (0.4.2)

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.
include_protocol bool
If true, http and https requests will be cached separately.
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.
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.