Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

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

§
includeHost?: boolean
[src]

If true, requests to different hosts will be cached separately.

§
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.

§
includeProtocol?: boolean
[src]

If true, http and https requests will be cached separately.

§
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.

§
queryStringBlacklist?: string[]
[src]

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?: string[]
[src]

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.