Click to See Complete Forum and Search --> : Wonky Firefox Headers.


TJ111
11-16-2007, 01:06 PM
For some reason, 80% of pages (including my own) that use image swapping for things like menu's, etc on rollovers don't work properly in my default firefox profile. Even if the image is pre-loaded, or loaded after I mouseover an object, the next time I go to mouseover it again firefox puts out another call to the server and downloads the image again. However if I load up firefox under a different profile other than default, it properly caches the images.

I have tried disabling all ad-ons and have been tinkering with the settings for weeks, but for whatever reason can't figure it out. For some reason my default profile won't send "if-modified-since" headers nor will it cache them after they are loaded. Its not a huge issue, just very annoying, especially when working on my own sites.

Example Headers:

Default Profile
(loaded as the page loads)

http://petrra.localhost/images/menu_loginH.bmp

GET /images/menu_loginH.bmp HTTP/1.1
Host: petrra.localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9; .NET CLR 2.0.50727) Gecko/20071025 Firefox/2.0.0.9
Accept: image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://petrra.localhost/login.php?err=notlogged&host=petrra.localhost&path=%2Findex.php
Cookie: PHPSESSID=a2383a1ddf41badf2fd5f9ca7fde6f23

HTTP/1.x 200 OK
Date: Fri, 16 Nov 2007 18:02:16 GMT
Server: Apache/2.2.4 (Win32) PHP/5.2.4
Last-Modified: Mon, 08 Oct 2007 14:24:39 GMT
Etag: "f8a4-5e7-33d77c0"
Accept-Ranges: bytes
Content-Length: 1511
Keep-Alive: timeout=5, max=85
Connection: Keep-Alive
Content-Type: image/bmp


then when I mouseover the image it sends this exact same header to the server and downloads the image again.

But when I load up firefox under a different profile:

http://petrra.localhost/images/menu_loginH.bmp

GET /images/menu_loginH.bmp HTTP/1.1
Host: petrra.localhost
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071025 Firefox/2.0.0.9
Accept: image/png,*/*;q=0.5
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Connection: keep-alive
Referer: http://petrra.localhost/login.php?err=notlogged&host=petrra.localhost&path=%2Findex.php&query=
Cookie: PHPSESSID=986530744a7a0e9795a4c5da59c6c3b4
If-Modified-Since: Mon, 08 Oct 2007 14:24:39 GMT
If-None-Match: "f8a4-5e7-33d77c0"
Cache-Control: max-age=0

HTTP/1.x 304 Not Modified
Date: Fri, 16 Nov 2007 18:01:23 GMT
Server: Apache/2.2.4 (Win32) PHP/5.2.4
Connection: Keep-Alive
Keep-Alive: timeout=5, max=93
Etag: "f8a4-5e7-33d77c0"


Anyone know what could cause this and/or how I could fix it?