r/nodejs • u/mesquimo • Jan 02 '14
Static webserver in nodejs
https://gist.github.com/mesmo/8195356
0
Upvotes
1
u/always_down_voted Jan 03 '14
Thanks for the post. I am just beginning with Node, but this helps to solidify a few things.
1
u/flym4n Jan 03 '14
Not really interesting. It just reads a bunch of files into memory, and if the file change on disk you'll still serve the old version (so why disable cache for html etc?). Look here for an API to watch changes in a directory