Skip to content

Commit

Permalink
Build: Added HTTP compression to the test server
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurentGoderre committed Jan 15, 2015
1 parent 8ad32fe commit 97eb99a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Gruntfile.coffee
Expand Up @@ -1261,6 +1261,13 @@ module.exports = (grunt) ->
test:
options:
base: "."
middleware: (connect, options, middlewares) ->
middlewares.unshift(connect.compress(
filter: (req, res) ->
/json|text|javascript|dart|image\/svg\+xml|application\/x-font-ttf|application\/vnd\.ms-opentype|application\/vnd\.ms-fontobject/.test(res.getHeader('Content-Type'))
))

middlewares

i18n_csv:
options:
Expand Down

0 comments on commit 97eb99a

Please sign in to comment.