gzip, br, deflate, and compress algorithms.
If your upstream service already handles compression, ngrok skips this step.
compress-response Traffic Policy action docs for more information.Documentation Index
Fetch the complete documentation index at: /docs/llms.txt
Use this file to discover all available pages before exploring further.
Learn how to compress JSON responses using Traffic Policy to improve performance and reduce bandwidth usage.
gzip, br, deflate, and compress algorithms.
on_http_response:
- name: Add compression
actions:
- type: compress-response
config:
algorithms:
- gzip
- br
- deflate
- compress
{
"on_http_response": [
{
"name": "Add compression",
"actions": [
{
"type": "compress-response",
"config": {
"algorithms": [
"gzip",
"br",
"deflate",
"compress"
]
}
}
]
}
]
}
compress-response Traffic Policy action docs for more information.Was this page helpful?