Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
Merge pull request #565 from simison/patch-7
Browse files Browse the repository at this point in the history
Add fonts and svgs to gzip compression pattern
  • Loading branch information
ilanbiala committed May 17, 2015
2 parents 6fddcf4 + fea436f commit 5564979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/lib/express.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}));
Expand Down

0 comments on commit 5564979

Please sign in to comment.