Skip to content

Commit

Permalink
Deflate "application/json" by default
Browse files Browse the repository at this point in the history
Hello,
How can I customize the "types" of "deflate " while using " default_mods " ?
I need to deflate "application/json".

JSON is a common text resource types on the web which should be served with HTTP compression:
https://zoompf.com/blog/2012/02/lose-the-wait-http-compression

Thks
  • Loading branch information
leopoiroux committed Sep 7, 2015
1 parent 894b3be commit a221fdc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manifests/mod/deflate.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
'text/html text/plain text/xml',
'text/css',
'application/x-javascript application/javascript application/ecmascript',
'application/rss+xml'
'application/rss+xml',
'application/json'
],
$notes = {
'Input' => 'instream',
Expand Down

0 comments on commit a221fdc

Please sign in to comment.