Print Story Slashdotted by favicon.ico
Scoop
By coryking (Wed Feb 15, 2006 at 12:12:45 PM EST) apache, scoop, photographica, your mom (all tags)
Looks like my.yahoo.com now uses your websites favicon.ico on their pages.  Every user who has added your feed to their my.yahoo.com page will see your cute little icon right next to your feed.

This is a problem... 

Inside: fix apache configuration day!

Update [2006-2-15 14:5:48 by coryking]: Fixed!



Well, the thing is, yahoo will directly link to your favicon and not cache a copy locally.  For the incorrectly configured apache server, this is a problem.

What happens is apache will hand the request for favicon over to mod_perl/scoop.  mod_perl/scoop will then create a new session* for every single %$&* person who looks at your favicon.

This means photographica has been slashdotted by favicon.  The site is SLOW as a dog, and it thinks there are thousands of people visiting the website.  There are probably a bagillion new sessions in the database too.

There is a workaround - you can somehow get apache to go "oh, this request is for favicon.ico, lets NOT hand it over to mod_perl and just use the built in request handler".  The thing is, I cant get the regex to work right.

Here is the config in apache, why doesn't this work?

<LocationMatch "^/(robots.txt|favicon.ico|backend.rdf|arsgraphica.rdf|read-comments.js|astrack.js|popup.js|toggle.js)">
SetHandler default-handler
</LocationMatch>

* Yes, new versions of scoop do not create sessions for unauthenticated users.  I had to rip that out because I need a session for the shopping cart.  Even still, the whole mod_perl mess must be invoked for every favicon.ico request and that isn't cool.

Update [2006-2-15 14:5:48 by coryking]: The solution:

<LocationMatch "robots\.txt|favicon\.ico|backend\.rdf|arsgraphica\.rdf|read-comments\.js|astrack\.js|popup\.js|toggle\.js">
SetHandler default-handler
</LocationMatch>

Full discussion: http://www.hulver.com/scoop/story/2006/2/15/121245/970