Reputation: 1491
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?
Upvotes: 5
Views: 1988
Reputation: 5217
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.
Upvotes: 2