Wednesday, May 31, 2006

Correcting Browser Image Flicker

I was reading Slash Dot today and noticed that any time I ran the mouse over the logo, it flashed; how annoying.

I asked a colleague about it and he suggested I change the settings on my browser, because it had to do with image cache. While I could adjust my browser, it seemed there must be another way.

It turns out you can adjust the settings on your server to set default caching requirements for graphics and this will fix the problem, but it didn't seem right that I would have to ask my hosting provider to change server settings either....

So a little more searching and I found the solution (assuming you're using ASP.NET). You can create an HTTP handler for images. I'm not going to go into the details here, since this article is all you need.

No comments: