Skip to content

Commit

Permalink
use compression
Browse files Browse the repository at this point in the history
  • Loading branch information
danieltanfh95 committed Oct 3, 2015
1 parent 6a0b68f commit 4dbf0e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var cheerio= require('cheerio');
var http=require('http');
var compress = require('compression');

var routes = require('./routes/index');
var users = require('./routes/users');
Expand All @@ -19,6 +20,7 @@ app.set('view engine', 'jade');

// uncomment after placing your favicon in /public
//app.use(favicon(__dirname + '/public/favicon.ico'));
app.use(compress());
app.use(logger('dev'));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }));
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"dependencies": {
"body-parser": "~1.6.6",
"cheerio": "~0.19.0",
"compression": "^1.6.0",
"cookie-parser": "~1.3.2",
"debug": "~1.0.4",
"express": "~4.8.6",
Expand Down

0 comments on commit 4dbf0e1

Please sign in to comment.