title: how to add expires header to favicon.ico in Node.js / Express
body: <p>In Express I add expires headers to my static files like this</p>
  
  <pre><code>app.use(function (req, res, next) {
  
      // static folder: css
      if (req.url.indexOf('/css/') === 0) {
          res.setHeader('Cache-Control', 'public, max-age=345600'); // 4 days
          res.setHeader('Expires', new Date(Date.now() + 345600000).toUTCString());
      }
  
  });
  
  app.use(express.static(root + '/app'));
  </code></pre>
  
  <p>What I cannot do is catch the favicon.ico request like this.</p>
  
  <p>Is there a way to add expires header to favicon in Node/Express?<br>
  What makes the favicon.ico request so different compared to other static files?  </p>
  
  <p>Thx!</p>