CacheKeyPolicy constructor

const CacheKeyPolicy({
  1. Input<bool>? includeHost,
  2. Input<List<String>>? includeHttpHeaders,
  3. Input<List<String>>? includeNamedCookies,
  4. Input<bool>? includeProtocol,
  5. Input<bool>? includeQueryString,
  6. Input<List<String>>? queryStringBlacklist,
  7. Input<List<String>>? queryStringWhitelist,
})

Creates a new CacheKeyPolicy. includeHost If true, requests to different hosts will be cached separately. includeHttpHeaders Allows HTTP request headers (by name) to be used in the cache key. includeNamedCookies 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 If true, http and https requests will be cached separately. includeQueryString 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 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 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.

Implementation

const CacheKeyPolicy({
  this.includeHost,
  this.includeHttpHeaders,
  this.includeNamedCookies,
  this.includeProtocol,
  this.includeQueryString,
  this.queryStringBlacklist,
  this.queryStringWhitelist,
});