magda-io / magda

A federated, open-source data catalog for all your big data and small data
https://magda.io
Apache License 2.0
493 stars 93 forks source link

Add config option to disable gateway auto gzip response feature #3538

Closed t83714 closed 2 weeks ago

t83714 commented 4 weeks ago

Add config option to disable gateway auto gzip response feature

Currently, the gateway uses compression middleware to auto-gzip response (depending on MIME type).

However, there would be situations we will want to disable the "auto-gzip response" feature e.g. when the ingress support gzip response or it prevents Server Side Event stream from working.

p.s. instead of disabling compression middleware, you can also respond to the Cache-Control header with the no-transform directive as compression middleware will never gzip response for this case.

This ticket is about adding a helm chart config option to Magda gateway chart that allows users to disable the "auto-gzip response" feature.

t83714 commented 2 weeks ago

closed via PR: https://github.com/magda-io/magda/pull/3539