- Property Manager name: Cache Key Query Parameters
- Behavior version: The
latest
rule format supports thecacheKeyQueryParams
behavior v1.2. - Rule format status: Beta, possible breaking changes
- Access: Read/Write
- Allowed in includes: Not available for
latest
rule format
By default, cache keys are formed as URLs with full query strings. This behavior allows you to consolidate cached objects based on specified sets of query parameters.
Note also that whenever you apply behavior that generates new cache keys, your origin server may experience traffic spikes before the new cache starts to serve out.
Option | Type | Description | Requires | |
---|---|---|---|---|
behavior | enum | Configures how sets of query string parameters translate to cache keys. Be careful not to ignore any parameters that result in substantially different content, as it is not reflected in the cached object. | {"displayType":"enum","options":["INCLUDE_ALL_PRESERVE_ORDER","INCLUDE_ALL_ALPHABETIZE_ORDER","IGNORE_ALL","INCLUDE","IGNORE"],"tag":"select"} | |
INCLUDE_ALL_PRESERVE_ORDER | Forms a separate key for the entire set of query parameters, but sensitive to the order in which they appear. (For example, | |||
INCLUDE_ALL_ALPHABETIZE_ORDER | Forms keys for the entire set of parameters, but the order doesn't matter. The examples above both use the same cache key. | |||
IGNORE_ALL | Causes query string parameters to be ignored when forming cache keys. | |||
INCLUDE | Include the sequence of values in the | |||
IGNORE | Include all but the sequence of values in the | |||
parameters | string array | Specifies the set of parameter field names to include in or exclude from the cache key. By default, these match the field names as string prefixes. | behavior is either: INCLUDE , IGNORE | {"displayType":"string array","tag":"input","todo":true} {"if":{"attribute":"behavior","op":"in","value":["INCLUDE","IGNORE"]}} |
exactMatch | boolean | When enabled, | behavior is either: INCLUDE , IGNORE | {"displayType":"boolean","tag":"input","type":"checkbox"} {"if":{"attribute":"behavior","op":"in","value":["INCLUDE","IGNORE"]}} |