Skip to content

Commit

Permalink
add compression
Browse files Browse the repository at this point in the history
  • Loading branch information
ali asaria committed Oct 12, 2014
1 parent 16333ae commit 80a3ce4
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@
"node": "0.4.7"
},
"dependencies": {
"async": "~0.9.0",
"redis": "~0.12.1",
"sanitizer": "~0.1.1",
"socket.io": "1.x",
"simplesets": "~1.2.0",
"express": "4.x",
"jade": "~1.5.0"
"async": "~0.9.0",
"compression": "^1.1.0",
"express": "4.x",
"jade": "~1.5.0",
"redis": "~0.12.1",
"sanitizer": "~0.1.1",
"simplesets": "~1.2.0",
"socket.io": "1.x"
}
}
2 changes: 2 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ var http = require('http');
var sys = require('sys');
var async = require('async');
var sanitizer = require('sanitizer');
var compression = require('compression');
var express = require('express');

/**************
Expand All @@ -24,6 +25,7 @@ var sids_to_user_names = [];
**************/
var app = express();

app.use(compression());
app.use(express.static(__dirname + '/client'));

var server = require('http').Server(app);
Expand Down

0 comments on commit 80a3ce4

Please sign in to comment.