I would like to know what express.favicon() does. I seared and could not get the reasoning.
can any one explain me on this.
app.use(express.favicon());
I read some link that this command will do a ignore of GET/favicon.ico. I am looking for understanding more about this like?where is the function: express.favicon() defined and all those information, I did checked in the expresss website could not find the declaration/definition of this function
It defines a favicon for your application. Passing no path to a favicon will serve up the express favicon by default.
As far as I can tell, it loads the /favicon.ico file from your site (like it would if you have the static handler loaded) but then caches it.
So, the advantage of using this over just the static handler is that it caches it more.