Skip to content

Commit 1547ac6

Browse files
committed
enable express response compression
1 parent 9b23b6f commit 1547ac6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: templates/express/config/express.js

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ module.exports = function(app) {
2929
});
3030

3131
app.configure('production', function(){
32+
app.use(express.compress());
3233
app.use(express.favicon(path.join(config.root, 'public', 'favicon.ico')));
3334
app.use(express.static(path.join(config.root, 'public')));
3435
app.set('views', config.root + '/views');

0 commit comments

Comments
 (0)