senchalabs/connect — pull request #477 by bf (2012-02-21 21:34:03+00:00)
Title: Bugfix for serving .svgz (gzipped Scalable Vector Graphics) via connect....

...static. Browsers with Webkit and Gecko rendering engines rely on the "Content-Encoding: gzip" HTTP header in order to properly recognize .svgz files.

This fixes a very annoying "feature" of at least Firefox and Chromium on Linux and Mac, as .SVGZ files are not recognized by the browser as gzipped .SVG files when served without the "Content-Encoding: gzip" HTTP header. As I'd love to serve scalable graphics to my users in a minified version - hence the svgz - this bugged us while serving content from static directories with node.js.