Enable gzip compression.
This commit is contained in:
parent
5c568e649f
commit
273adb660c
|
@ -8,6 +8,7 @@ angular.module('ffffng').factory('app', function (fs) {
|
||||||
|
|
||||||
var clientDir = __dirname + '/../client';
|
var clientDir = __dirname + '/../client';
|
||||||
|
|
||||||
|
app.use(express.compress());
|
||||||
app.use('/', express.static(clientDir + '/'));
|
app.use('/', express.static(clientDir + '/'));
|
||||||
app.get('/', function (req, res, next) {
|
app.get('/', function (req, res, next) {
|
||||||
fs.readFile(clientDir + '/index.html', 'utf8', function (err, body) {
|
fs.readFile(clientDir + '/index.html', 'utf8', function (err, body) {
|
||||||
|
|
Loading…
Reference in a new issue