title: res.sendfile() doesn't serve javascripts well
body: <p>I want to use static file serve <strong>without</strong> any rendering engine.
  I've tried to use:</p>
  
  <pre><code>res.sendfile('public/index.html');
  </code></pre>
  
  <p>on the '/' GET route, and express middleware for static files on my route:</p>
  
  <pre><code>app.use(express.static(path.join(__dirname, 'public')));
  </code></pre>
  
  <p><strong>BUT</strong> it seems like all of the javascripts which the client asks for are downloaded with index.html file information.</p>
  
  <p>How can I make a successful download of the CSS/JS static files ?</p>
  
  <p><strong>UPDATE:</strong></p>
  
  <p>Here is the route for the "res.sendfile ..." :</p>
  
  <pre><code>app.get('/*', index);
  </code></pre>
  
  <p>I want all of the requests to the server on any route will get <code>index.html</code> and all of its JS&amp;CSS assosiciated with.</p>