Deflate compression doesn't work with request coming back from backend
search cancel

Deflate compression doesn't work with request coming back from backend

book

Article ID: 408113

calendar_today

Updated On:

Products

CA API Gateway

Issue/Introduction

With a passthrough policy where the backend is returning content-encoding: deflate, the API gateway is not decompressing the returned response body. 

Is the deflate encoding supported? The documentation suggests that it is, but it doesn't seem to work. 

Environment

API Gateway 11.x  

Resolution

Currently, the API Gateway does not support deflate. There are a few workarounds which can be used.

1. Use a tactical assertion which supports deflate and can be used to deflate the response content in the gateway. The functionality of this tactical gzip assertion was partly moved to the EncodeDecodeAssertion but that particular assertion does not support deflate. This tactical assertion can be acquired from Support.

2. Set the accept-encoding header to gzip so the backend response will be in gzip instead of deflate.