Categories

Lower Webduino server overhead with a favicon.ico

Posted on Monday, January 2nd, 2012 in Arduino, code, tcpip, web platforms by the machinegeek


Martin Lormes recently acquired an Arduino and Ethernet shield. Once he got the setup running on the web using the Webduino Arduino web server library, he checked the traffic using Wireshark and noticed that if the embedded server didn’t offer up a favicon.ico file when initially requested the browser would keep requesting the file. This required the Arduino server to continuously generate a “400 error” message in response to each request. He decided to modify the Webduino code adding a default favicon.ico (“Hello world”) response, based on the icon used in the “Web_Image” example that ships with Webduino. This way a file is provided on the initial browser request and cached, lowering Arduino server traffic load over time.

You can find Martin’s project description at his Ten Fingers and a Brain website. His modded Webduino code is posted as a fork on Github.

This entry was posted on Monday, January 2nd, 2012 at 4:00 pm and is filed under Arduino, code, tcpip, web platforms. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

2 Responses to “Lower Webduino server overhead with a favicon.ico”

  1. Peter says:

    That’s a neat trick. :-) But was Webduino really generating a 400 response? That sounds to me like a bug; it’s not a client error, just something the server is incapable of responding to. 404 might be OK, otherwise maybe a 501. I’d favour 404 just because I know that browsers tend to not re-request favicons if they 404.

    • youtube.com says:

      I’m really enjoying the design and layout of your website. It’s
      a very easy on the eyes which makes it much more enjoyable
      for me to come here and visit more often. Did you
      hire out a developer to create your theme? Excellent work!

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments