Figure out pass-through compression for nginx · Issue #5989 · dotnet/aspnetcore (original) (raw)
When a request is proxied behind nginx the Accept-Encoding header is removed. This prevents the back-end from being able to compress the response.
Nginx supports compression on the front end, and compression between the back end and the front end, but it does not seem to allow the back-end compression to pass-through. See the integration tests in the ServerTests repo.