Express-Static Flashcards
1
Q
What is the purpose of the Express Static middleware?
A
Express Static allows for static files to be added to an application dynamically so that all files are not all downloaded during the initial render of an appilcation and only served when they need to be.
2
Q
What does the function express.static() return?
A
it returns an object
3
Q
What are several examples of static files?
A
HTML files and images
4
Q
What is a good way to serve application images using Express?
A
using the static method