I\'m pretty new to node.js and I\'m trying to send back a zip file containing JSON results. I\'ve been trying to figure it out how to do it, but haven\'t had the expected result
You can compress output in express 3 with this:
app.configure(function(){ //.... app.use(express.compress()); }); app.get('/foo', function(req, res, next){ res.send(json_data); });
If the user agent supports gzip it will gzip it for you automatically.