So I am logging to console each request I receive... I want to drop all traffic to certain routes, so I am using req.destroy() to accomplish this...Essentially I am seeing 10 "requests" for each single request sent with Firefox.. (the 'network' tab in devtools shows a single request)This only happens in Firefox, this does not happen when using Chrome or Postman... It is worth mentioning Chrome will send 2 requests initially - one for the entered URL and one for favicon.ico (which is what I'm seeing in the Chrome 'network' tab) - and then 1 request per each refresh, etc..Is there a reason for this? I assume this is Firefox specific, but was curious if anyone knows how to mitigate this within Node?As you can see in the screenshots I am restarting the server before each test..Sent using FirefoxSent using ChromeSent using Postman
Submitted February 15, 2020 at 09:09PM by oze4
No comments:
Post a Comment