Is there a generic way to enable gzip compression when using Meteor irrespective of whether it is hosted locally, on meteor.com or on heroku? If I wanted gzip compression just on my heroku-hosted Meteor app, how could that be enabled?
Gzip compression does not appear to be used when running Meteor locally.
When you perform a meteor bundle
command, the resulting bundle contains a server which uses the 'gzippo' connect middleware [1] to perform gzip compression by default.
You can view (and modify) the server file by unpacking the tarball and editing: server/server.js.
[1] http://tomg.co/gzippo
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