<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hello</div><div>Is there a way we can achieve the following when nginx is acting as a reverse proxy</div><div><ol><li>Client sends HTTP request with Accept-Encoding as gzip</li><li>Nginx proxy forwards the request with the request header intact</li><li>Origin server sends a compressed response</li><li>At the nginx proxy, we *decompress* the response, apply transformations on the response body and then *again* compress it</li></ol><div style="color: rgb(0, 0, 0); font-size: 16px; font-family: 'times new roman', 'new york', times, serif; background-color: transparent; font-style: normal;"><span>In other words, is there a way to use the functionality of gzip and gunzip modules simultaneously for a processing a response and in a particular order</span></div></div><div><br></div><div><br></div></div></body></html>