cache_​key_​query_​params

Version: v2024-01-09Includes use: Yes

Behavior name: Cache Key Query Parameters

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: Whenever you apply a behavior that generates new cache keys, your origin server may experience traffic spikes before the new cache starts to serve out.

Option Description
behavior
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. Value is one of:
  • 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, ?q=akamai&state=ma and ?state=ma&q=akamai cache separately.
  • 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 parameters field.
  • IGNORE. Include all but the sequence of values in the parameters field.
parameters
exact_​match
When enabled, parameters needs to match exactly. Keep disabled to match string prefixes.