node-static vs express.static

4.1k Views Asked by At

I am trying to set up a static file server/cache in Node.js. I use Express.js.

Express comes in with a built-in static server, and Express is definitely one of the most used frameworks, and so one would expect the static middleware to be super reliable.

However, I look around the internet and find that tons of people, including Nodejitsu, recommend the node-static npm module.

I try to do some kind of comparative research between the two but don't find much.

Is there really any difference? I would like to use Express.static, as I am already using Express, but want to make the right choice.

This isn't an opinion war post, I am just looking for comparatives of features from those who know what they are talking about, not 'favorites'.

0

There are 0 best solutions below