node.js - What is the use to serve favicon from server -
i have doubt regarding favicon
, can add favicon
directly in html
file following code.
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
i have tried above code, it's working fine. have seen there modules in npm
server favicon
images. if add through html
, why have use modules serve.
for case of serve-favicon module:
why use module?
- user agents request favicon.ico , indiscriminately, may wish exclude these requests logs using middleware before logger middleware.
- this module caches icon in memory improve performance skipping disk access.
- this module provides etag based on contents of icon, rather file system properties.
- this module serve compatible content-type.
Comments
Post a Comment