What is the best way to gzip JSON responses from my Phoenix API server?
Is there any GZIP plug or should I have nginx
in front of Phoenix?
You can configure gzip compression for all responses from a particular endpoint, such as the one used by your API.
config :app_name, AppName.Endpoint,
http: [compress: true]
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With