Permalink
Browse files

compress

  • Loading branch information...
1 parent 732831b commit b58661fd31b1a6cc9b09b38239c7c32061fabdcd @tj tj committed Oct 13, 2012
Showing with 13 additions and 0 deletions.
  1. +13 −0 en/api/mw-compress.jade
View
@@ -0,0 +1,13 @@
+section
+ h3(id='compress') compress()
+
+ p.
+ Compress response data with gzip / deflate. This middleware
+ should be placed "high" within the stack to ensure all
+ responses may be compressed.
+
+ +js.
+ app.use(express.logger());
+ app.use(express.compress());
+ app.use(express.methodOverride());
+ app.use(express.bodyParser());

0 comments on commit b58661f

Please sign in to comment.