Serve site icons (favicon and apple-touch-icon(s)) quickly from any directory.
Serve site icons (favicon.ico and apple-touch-icon.png and all its flavours) quickly and from any directory.
npm install --save git://github.com/theworkers/connect-favicons.git
Add connect-favicons to your middleware stack before everything else. The whole point here is to serve favicon.ico and apple-touch-icon.png (et al.) quickly, without involving any routing.
In this case, you may have all your site icons, including
Now any request to the
example.com/apple-touch-icon.png will be served by Connect Favicons, reading from the folder you specified.
var http = ;var path = ;var express = ;var favicons = ;var app = ;// Middleware stackapp;app;http;