This example shows how to compress JSON responses from your upstream service with Traffic Policy, and what happens if they’re already compressed.
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.
If your upstream service already handles compression, ngrok skips this step.