David Wihl
David Wihl

Reputation: 1491

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?

Upvotes: 5

Views: 1988

Answers (1)

alanning
alanning

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.

[1] http://tomg.co/gzippo

Upvotes: 2

Related Questions