diff --git a/config/lib/express.js b/config/lib/express.js index b01eb9abf1..129e0fd42b 100644 --- a/config/lib/express.js +++ b/config/lib/express.js @@ -54,7 +54,7 @@ module.exports.initMiddleware = function (app) { // Should be placed before express.static app.use(compress({ filter: function (req, res) { - return (/json|text|javascript|css/).test(res.getHeader('Content-Type')); + return (/json|text|javascript|css|font|svg/).test(res.getHeader('Content-Type')); }, level: 9 }));