From 273adb660ca3ff5ee7ee8ac542213340039c716e Mon Sep 17 00:00:00 2001 From: Your Name Date: Fri, 6 Jun 2014 13:13:07 +0200 Subject: [PATCH] Enable gzip compression. --- server/app.js | 1 + 1 file changed, 1 insertion(+) diff --git a/server/app.js b/server/app.js index fd3093c..1cf7694 100644 --- a/server/app.js +++ b/server/app.js @@ -8,6 +8,7 @@ angular.module('ffffng').factory('app', function (fs) { var clientDir = __dirname + '/../client'; + app.use(express.compress()); app.use('/', express.static(clientDir + '/')); app.get('/', function (req, res, next) { fs.readFile(clientDir + '/index.html', 'utf8', function (err, body) {