From fea436f815d72483c3ef29873773f92067a0177c Mon Sep 17 00:00:00 2001 From: Mikael Korpela Date: Sat, 16 May 2015 14:10:14 +0300 Subject: [PATCH] Add fonts and svgs to gzip compression pattern I think it's good to have these here "just in case", even the seed project wouldn't have any fonts/svgs. These are just so common filetypes at any project. Thoughts? --- config/lib/express.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }));