SWF file not loaded from cache when accessed from different pages in the website?
I have a flash gallery that uses a dynamic swf file to load data from xml and load images. This same swf files is used over several times for different clients in the portfolio section.
But now it apears that the swf is loaded everytime a d开发者_开发问答ifferent client is clicked even though they all access the same swf file, any ideas?
Well if all it does it load and display data the performance should be negligible.
If byte transfer is paramount to you, then you might be able to recoup the losses by storing some of your XML in a LocalSharedObject with a plausible expiration timer.
Otherwise, don't over-engineer yourself into a headache.
The SWF file being the same isn't the important part. The important part is the URL used to access the SWF.
If the URL for the SWF includes query parameters and those parameters are different each time the client accesses it then the browser won't know that it's the same file and will re-download it.
精彩评论