Closed Bug 78019 Opened 23 years ago Closed 23 years ago

Some images loaded from server, but they should be in cache

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.0

People

(Reporter: jrgmorrison, Assigned: pavlov)

References

()

Details

Overview Description: 
 Running a simplified version of i-bench, on a second (and subsequent)
 load of the documents, with a caching policy of 'Once per session', 
 I still see the following images being fetched again.

 Edited HTTP server log (Apache):

 23:30:52  "GET /zdnet2/loadspeed/allimages/50.gif HTTP/1.1" 200 3720
 23:31:15  "GET /zdnet2/loadspeed/allimages/3.gif HTTP/1.1" 200 3181
 23:31:20  "GET /zdnet2/loadspeed/allimages/92.gif HTTP/1.1" 200 4180
 23:31:22  "GET /zdnet2/loadspeed/allimages/2.gif HTTP/1.1" 200 3653
 23:31:24  "GET /zdnet2/loadspeed/allimages/10.gif HTTP/1.1" 200 4347
 23:31:26  "GET /zdnet2/loadspeed/allimages/50.gif HTTP/1.1" 200 3720
 23:31:48  "GET /zdnet2/loadspeed/allimages/3.gif HTTP/1.1" 200 3181
 23:31:53  "GET /zdnet2/loadspeed/allimages/92.gif HTTP/1.1" 200 4180
 23:31:56  "GET /zdnet2/loadspeed/allimages/2.gif HTTP/1.1" 200 3653

Steps to Reproduce: 

1) Go to http://jrgm/zdnet2 with a new/emptied cache, and run the app.

2) do 'tail -f /etc/httpd/logs/access_log |grep /zdnet2/' to see what 
   is requested and you will see those images being loaded on each 
   cycle.

Actual Results: images that should be in the cache are reloaded

Expected Results: shouldn't need to reload these images, given the 
                  situation.

Reproducibility: 100%

Additional Information: 

I looked for a simpler way to reproduce this, or a reason why those images
need to be reloaded, but could find neither.

These image URLs are all loaded by more than one document in the test.  I set
up some cache headers for html documents in another directory, so I could get
the document URL's to show up along with the image URL's (i.e., which document
is wrongly loading which image file). This is that list:

/zdnet2/loadspeed/anchor-storybuildabetterwebsite.htm
  -- loads --> /zdnet2/loadspeed/allimages/10.gif
 
/zdnet2/loadspeed/pcm-analysis.htm
  -- loads --> /zdnet2/loadspeed/allimages/50.gif
 
/zdnet2/loadspeed/zdnet-compaqpresario5900zoverview.htm
  -- loads --> /zdnet2/loadspeed/allimages/3.gif
 
/zdnet2/loadspeed/zdnet-enterprisehowdoesitdoallthat.htm
  -- loads --> /zdnet2/loadspeed/allimages/92.gif
 
/zdnet2/loadspeed/zdnet-newsprotestersact.htm
  -- loads --> /zdnet2/loadspeed/allimages/2.gif
Target Milestone: --- → mozilla1.0
Blocks: 71668
I'm not sure if this is a related bug or how to make sure that what I suspect is
happening. Sorry for vagueness.

I have a page (http://www.sv-irene.nl/) with a menu that uses images that are
changed with JavaScript when the cursor is over them. No problem there, unless
when I hit Shift-reload with mozilla 0.9.4. Thereafter anytime the picture is
changed it's fetched from the server instead of from the cache.

Bugs targeted at mozilla1.0 without the mozilla1.0 keyword moved to mozilla1.0.1 
(you can query for this string to delete spam or retrieve the list of bugs I've 
moved)
Target Milestone: mozilla1.0 → mozilla1.0.1
don't move bugs that are in the 1.0 dependency tree. sorry.

Target Milestone: mozilla1.0.1 → mozilla1.0
fixed
Status: NEW → RESOLVED
Closed: 23 years ago
Depends on: 108161
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.