I am working on basic web app that resembles a minified version of a social network site. I currently wrote a function that read files and serve according to their mime type. It also caches the content of the file so the next time the browser ask for the same file, its content is not read from disk but from the object in whose property I am saving the data of file. I was wondering, how does the static-middleware in ExpressJS works? What caching mechanism does it use? Or does it use streams (do not save data temporarily on the disk while serving the file)?
Submitted December 02, 2016 at 07:32AM by simplicius_
No comments:
Post a Comment