excludeHeaders

Headers to EXCLUDE from cache key computation, matched regardless of case. Empty by default - all headers are included in the cache key.

Add tracing/telemetry headers that vary per request and should not affect deduplication.

Common headers to consider excluding:

  • Distributed tracing: X-Trace-Id, X-Request-Id, X-Correlation-Id

  • Zipkin/B3: X-B3-TraceId, X-B3-SpanId, X-B3-ParentSpanId, X-B3-Sampled

  • W3C Trace Context: traceparent, tracestate

  • Firebase: X-Firebase-Locale, X-Firebase-Auth-Time

  • AWS: X-Amzn-Trace-Id

  • Google Cloud: X-Cloud-Trace-Context