Response headers do not match

Matches when none of the specified response header name and pattern pairs match.

This condition inspects the outgoing response to determine whether a specified set of header name and pattern pairs is matched. It returns true only if none of the pairs match, meaning every specified header is either absent or has a value that does not match its respective regular expression .

Configuration

  • Case sensitive: Whether to enable case sensitivity during the comparison. When disabled, the condition performs a case-insensitive match for both the header names and the values against the defined patterns.
  • Name: The exact name of the response header to inspect. Multiple headers can be added to the list.
  • Pattern: The RE2 regular expression used to evaluate the specific header’s value.
  • Defined patterns: The list of all active name-pattern pairs for this condition. The condition returns true only if the response matches none of the entries in this list.

Measurement

To evaluate this condition, the proxy resolves the specified headers from the outgoing response and evaluates them against the Defined patterns as a collective set.

  • Match found: If any name-pattern pair matches, the condition returns false.
  • No match found: The condition returns true only if no pair matches, meaning every specified header is either absent or has a value that does not match its pattern.
  • Missing header: A missing header is treated the same as a header whose value does not match the pattern.

Performance

  • Sequential validation: To return true, the proxy must evaluate the entire list of pairs to confirm that none of them match. Large lists add an incremental processing cost to every response.
  • Short-circuit optimization: The proxy stops processing and returns false as soon as it identifies a match. To minimize processing time, place the entries most likely to match at the top of the list.
Have questions not answered here? Contact Support to get more help.

Last modified on November 18, 2026