That is normal – your browser makes more than one call.
Most browsers make a call to grab /favicon.ico
for example.
Try to log the url:
console.log(req.url);
and you’ll see what’s being called.
More Related Contents:
- Node.js + Nginx – What now?
- Querying after populate in Mongoose
- how to specify local modules as npm package dependencies
- Choose proper async method for batch processing for max requests/sec
- npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents
- Which websocket library to use with Node.js? [closed]
- Render a variable as HTML in EJS
- nodejs connect cannot find static
- Global Variable in app.js accessible in routes?
- Express.js routing: optional splat param?
- Stream from a mongodb cursor to Express response in node.js
- How to add custom certificate authority (CA) to nodejs
- Windows Integrated Authentication in node.js Client
- How to verify FCM registration token on server?
- Exec : display stdout “live”
- how to get the list of process
- Verifying Auth0 JWT throws invalid algorigthm
- npm install shows error with git not found
- Why can’t I access ‘window’ in an exposeFunction() function with Puppeteer?
- Is it possible to set a base URL for NodeJS app?
- npm install not work
- Mongodb sort with case insensitive manner
- For async tests and hooks, ensure “done()” is called; if returning a Promise, ensure it resolves
- How do I use a self signed certificate for a HTTPS Node.js server?
- Any way to serve static html files from express without the extension?
- What’s going on with Meteor and Fibers/bindEnvironment()?
- How to fix “FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory” error
- React Proxy error: Could not proxy request /api/ from localhost:3000 to http://localhost:8000 (ECONNREFUSED)
- Mongoose: ObjectId Comparisons fail inconsistently
- how do i create a non-blocking asynchronous function in node.js?