1 message in ru.sysoev.nginx[ANN] mod_strip
FromSent OnAttachments
Evan MillerJan 28, 2008 10:55 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[ANN] mod_stripActions...
From:Evan Miller (emmi@public.gmane.org)
Date:Jan 28, 2008 10:55:23 am
List:ru.sysoev.nginx

Ever get annoyed at all those extra spaces in your web site's HTML? Do you fantasize about one day reaping all those tabs and newlines that do nothing but cost you bandwidth?

Fantasize no longer! I've written a quick hack for Nginx that strips out superfluous whitespace from HTML documents, both static and proxied. It's fast. It's memory-efficient. It's available here:

http://wiki.codemongers.com/NginxHttpStripModule

Think of it as a poor man's Gzip (though it can be used in conjunction with Gzip).

Disclaimer: while mod_strip works for me, the module could horribly mangle mal-formed HTML. This will be corrected in a future version... but I thought I'd go ahead and throw this code out there for the adventurous types.

Cheers,

Evan