Express: Setting content-type based on path/file?
Also, if you want to extend the mime-types that express(connect) knows about, you can do express.static.mime.define({‘text/plain’: [‘md’]}); or connect.static.mime.define({‘text/plain’: [‘md’]}); PS: the mime module is now located at https://github.com/broofa/node-mime