Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable Gzip Compression with Meteor

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?

like image 320
David Wihl Avatar asked Nov 04 '22 07:11

David Wihl


1 Answers

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

like image 63
alanning Avatar answered Nov 08 '22 05:11

alanning