CacheKeyPolicy
import type { CacheKeyPolicy } from "https://googleapis.deno.dev/v1/compute:v1.ts";
Message containing what to include in the cache key for a request for Cloud CDN.
interface CacheKeyPolicy {
includeHost?: boolean;
includeHttpHeaders?: string[];
includeNamedCookies?: string[];
includeProtocol?: boolean;
includeQueryString?: boolean;
queryStringBlacklist?: string[];
queryStringWhitelist?: string[];
}§Properties
§
includeHttpHeaders?: string[]
[src]Allows HTTP request headers (by name) to be used in the cache key.
§
includeNamedCookies?: string[]
[src]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.
§
includeQueryString?: boolean
[src]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.