How to Control Flex 3 Image Control Caching

apache-fleximage

According to the adobe flex docs: http://livedocs.adobe.com/flex/3/html/help.html?content=controls_15.html

Using an image multiple times

You can use the same image multiple times in your application by using the normal image import syntax each time. Flex only loads the image once, and then references the loaded image as many times as necessary.

However, in testing we have found that if you request the same image (same url, etc.) in IE flash 9/10 a new http request will not be issued, but with Firefox, Safari (PC and MAC) a new request is always issued.

I want to prevent the image from being pulled from the server each time I try and use it anyone have any idea why this is working only in IE?

Best Answer

Here's the answer: NEVER think IE is doing it correctly. IE was wrong all the other browsers were correct. The .swf files were being returned with Cache-control: private header. IE should NOT have returned the cached image. Setting the Cache-Control header properly resulted in all browsers behaving as expected.