title: How to disable automatic HEAD on express?
body: <p>From <a href="https://expressjs.com/en/5x/api.html" rel="nofollow noreferrer">express docs</a>:</p>
  
  <blockquote>
    <p>The app.get() function is automatically called for the HTTP HEAD method in addition to the GET method if app.head() was not called for the path before app.get().</p>
  </blockquote>
  
  <p>It means that if you register <code>HEAD</code> method after <code>GET</code> for the same path, it will not be called. And I can't just switch the order because I have some automation on top of express which is responsible for registering the routes, so I don't control the order in which the routes are registered.</p>
  
  <p><strong>Is it possible to disable this feature? How?</strong></p>