Struct google_compute1::api::CacheKeyPolicy
source · pub struct CacheKeyPolicy {
pub include_host: Option<bool>,
pub include_http_headers: Option<Vec<String>>,
pub include_named_cookies: Option<Vec<String>>,
pub include_protocol: Option<bool>,
pub include_query_string: Option<bool>,
pub query_string_blacklist: Option<Vec<String>>,
pub query_string_whitelist: Option<Vec<String>>,
}
Expand description
Message containing what to include in the cache key for a request for Cloud CDN.
This type is not used in any activity, and only used as part of another schema.
Fields§
§include_host: Option<bool>
If true, requests to different hosts will be cached separately.
include_http_headers: Option<Vec<String>>
Allows HTTP request headers (by name) to be used in the cache key.
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: Option<bool>
If true, http and https requests will be cached separately.
include_query_string: Option<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: Option<Vec<String>>
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: Option<Vec<String>>
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.
Trait Implementations§
source§impl Clone for CacheKeyPolicy
impl Clone for CacheKeyPolicy
source§fn clone(&self) -> CacheKeyPolicy
fn clone(&self) -> CacheKeyPolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more