Wednesday, February 01, 2006
Sometimes, when you're developing for IE and you have DHTML/JavaScript code that dynamically swaps out the background images for an element (say, because you are hovering over it or really for any other reason as well), the images flicker. This is because IE reloads the images every time regardless of whether it has the image cached. The trick (and this only works if you are using IIS to serve your web site) is to modify the caching headers sent out for your /images/ directory (or whatever directory your background images are served from). Here is how you do it:
There you go.
David










