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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.