Skip to content

Taxum / @taxum/core / middleware/compression / DEFAULT_PREDICATE

Variable: DEFAULT_PREDICATE

const DEFAULT_PREDICATE: Predicate

Defined in: middleware/compression.ts:397

Default predicate for response compression.

All responses will be compressed unless:

  • They're gRPC, which has its own protocol-specific compression scheme.
  • It's an image as determined by the content-type starting with image/.
  • They're Server-Sent Events (SSE) as determined by the content-type being text/event-stream.
  • The response is less than 32