This content has been marked as final. Show 6 replies
the new download is not downloaded, at all unless you specifically add code to force a re-download. as you surmised, the file is retrieved from the user's cache and the user re-views the file.
that's perfect. thanks kglad.
So it will just open a new window, use the old 'profile.swf' but it will be populated with diff info becuase the php will be sending diff details. Just didn't want to be downloading 300k each time a new window was opened. thanks as always for the resopnse J.
if the php is called from profile.swf, then yes, after initial download profiles.swf will be retrieved from the cache.
however, it may not be populated with different info from php. some browsers will cache loaded data, too. to prevent that append a changing variable/value to your php call.
Thanks for the responses...
Sadly I have tested it again and it is redownloading the swf each time.
So that you understand fully what I am trying to do if you click on...
The page will load for user named 'krysula'. If you click the button in the background that says 'testBandwidth', a new window will open and load...
Although it is using exactly the same swf it is having to redownloaded it, instead of using what it has in memory. The swf is actually 400k in size. could this be preventing it from reading it from the cache?
yes, those do not appear to be the same php files to your browser. you're appending a variable/value to you php call that's different when you use user=krysula and user=katharine.
to remedy, link to the swf and have the swf call your php file.
Im not too sure how I am going to be able to do that, as there are quite a few other factors I need to take into consideration.
Anyway, im sure it will be resolvable!
At the moment im not ready to fully test this problem, however I will obviously have to return to it. Therefore Ill leave the thread open and return to it later.
Thanks kglad for your help up to this point. J