Gzipping with Express

53 views
Skip to first unread message

Rodrigo Alves Vieira

unread,
Mar 10, 2011, 9:49:34 PM3/10/11
to expre...@googlegroups.com
Hello there, I am developing my personal website using Express to learn more about Node.js and this awesome web framework and using YSlow to optimize some stuff. Lately, I was trying to gzip my files but don't know what middleware I can use.. is there any?

I searched in the Express web site and didn't find a solution, also I searched this group but the code I've found must have been deprecated...

My express version is 2.0.0beta2

Thanks!

Laurie Harper

unread,
Mar 11, 2011, 12:56:35 AM3/11/11
to expre...@googlegroups.com

Connect (which Express is built on top of) used to include a gzip middleware, but it's gone in Connect 1.0 / Express 2.0. You could look at the old implementation in Connect, but IIRC the reason they were dropped was because they were too inefficient to be of benefit.
--
Laurie Harper
http://laurie.holoweb.net/

Rodrigo Alves Vieira

unread,
Mar 11, 2011, 8:07:38 AM3/11/11
to expre...@googlegroups.com
hmmm, thanks. I'll watch connect out, perhaps there will be some future, more efficient implementation. 

 
Reply all
Reply to author
Forward
0 new messages