title: Unable to Change Favicon with Express.js
body: <p>This is a really basic question, but I'm trying to change the favicon of my node.js/Express app with</p>
  
  <pre><code>app.use(express.favicon(__dirname + '/public/images/favicon.ico'));
  </code></pre>
  
  <p>and I'm still getting the default favicon. This is in my <code>app.configure</code> function, and yes, I've verified that there <strong>is</strong>  a <code>favicon.ico</code> in the <code>/public/images/favicon.ico</code>.There's nothing about a <code>favicon.ico</code> in the console, either, which leads me to believe that this line of code is being ignored. Everything else in the function (setting port, setting views directory, setting template engine. etc.) seems to be working fine, so why would this line of code not be executing?</p>
  
  <p><strong>What I tried</strong></p>
  
  <ul>
  <li>Emptying browser cache</li>
  <li>Restarting Terminal and running <code>node app.js</code> again</li>
  <li>Adding <code>{ maxAge: 2592000000 }</code>, as described <a href="https://groups.google.com/forum/?fromgroups#!topic/express-js/W5mkAorVrW8" rel="noreferrer">here</a></li>
  </ul>
  
  <p>Thanks in advance.</p>
  
  <p><strong>Update:</strong> I got it to work. See my answer below for more information.</p>