Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

IE + mouseover + apache = crash and burn

only on some servers......

6:20 am on Apr 27, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:July 28, 2003
votes: 0

I have this simple mouseover swapimg code that I use for my sites. I just started using a new server and now all of the sudden this code doesnt work anymore. The mouse overs are extremly slow now. IE seems to be redownloading the image on every mouseover causing a 5 - 10 second delay in the swap.

I was confused by this so I copied the doc_root to my old server which is also running apache and loaded it with the same IE browser on the same PC and it worked perfect! The only variable was the server, everything else: the code and browser were kept constant.

I wanted to test this further so I loaded up firefox and went to the version that was *not* working and low and behold it worked without fail. I then went to the old *working* server and tested that and it worked *perfect* so now it looks like a browser issue....

I just dont understand why the combination of IE and That particular server yeilds terrible results.

Also, i read that it maybe a caching issue, but as far as i can tell neither server is issuing a no-cache header and the system times both servers and my PC are completly correct.


1:19 pm on Apr 27, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member blobfisk is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Feb 25, 2002
votes: 0

A strange one, since the server has very little impact on any client side code that you are running. The only thing that comes to mind is caching - is the server forcing the browser to submit a new http request for the image for eacdh page?
5:28 pm on Apr 27, 2004 (gmt 0)

Junior Member

10+ Year Member

joined:July 28, 2003
votes: 0

YES! I used liveHeaders extension with firefox (which btw, firefox works fine with both servers even though i can tell on the one that doesnt work, its still revalidating the image, firefox is just so fast that it has no effect on the speed)...

Anyway, the one thing i noticed about the server that *doesnt* work is that it sends an etag: afa9f08sdff(some garbage) and it also sends: Cache-Control: max-age=0

These headers go with every file, including the jpegs that are used in the mouseover. I am absolutly positive this is the cause, however I tried to NO avail to get it to stop sending those headers and it will not.

I tried disabling the following apache modules, and the reason i selected these modules was because I ran a grep -R "Cache-Control" * and grep -R "max-age" * in the apache source/modules directory to figure out which modules had those strings in them:


I also disabled:
mod_frontpage.c for sh.its and grins.

I then restarted the server and it still outputting the same headers as before....

Also, when I did the grep, the binary libphp4.a file matched on both strings, however i have found no documentation on php's website about this behavior...

Have any Ideas?

Thanks in advance.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members