Skip to main content

Compress JSON Responses Example

With Traffic Policy, you can ensure all JSON responses returned by your upstream services are compressed en route to the API consumer.

This rule compresses JSON responses using the gzip, br, deflate, and compress algorithms.

note

If your upstream service already handles compression, ngrok skips this step.

Policy

Loading…

Agent Config

Loading…

See the compress-response Traffic Policy action docs for more information.