Lower Webduino server overhead with a favicon.ico


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 in Arduino, code, tcpip, web platforms and tagged , , .

Comments

  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 Comment

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

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