expressjs / compression

Node.js compression middleware
MIT License
2.77k stars 241 forks source link

change Transfer-encoding #168

Closed khaledosama999 closed 4 years ago

khaledosama999 commented 4 years ago

Im using the middleware for compressing JSON ajax responses is there anyway to change the Transfer-encoding header value from chunked to gzip for example so i can display the Content-Length header ?

dougwilson commented 4 years ago

Afaik no web browser supports gzip in transfer-encodong, only in content-encoding.

That said, if you want to make a pull request with the change and testing shows it works in various web browsers and clients we will accept it.