The browser caches files on the basis of their file signature. So if you ask for mySWF.swf repeatedly the file can be cached. There is a mechanism for passing parameters with requests to load files by adding information after the filename. If this is done and the appended information changes, the browser can't cache the file because it looks different every time.
So, mySWF.swf can bee cached, but if you ask for mySWF.swf?param=1, mySWF.swf?param=2, mySWF.swf?param=3 it will always get the latest copy of mySWF.swf. Paul ----- Original Message ----- From: amandeepsingh bajwa To: flexcoders@yahoogroups.com Sent: Thursday, May 29, 2008 2:10 PM Subject: Re: [flexcoders] the old caching problem... many answers no solution!!! Hi Joseph vo...!!! amazed by how wide can a programmer can see. No sir, i dont work for military or something. My only requirement is to make the clients fetch the latest swf instead of what the browser has cached. Absolutely no problem with swf being getting stores their. True we need to concentrate upon securing the data rather than the swf itself. I ll always remember this tip. But the problem i face at the moment is to make client browser to fetch the latest version of swf from server and not cached one. The topic is not new and I have seen various Q's related to this in the archive, but could hardly understand any. confused!!! ----- Original Message ---- From: Joseph Balderson <[EMAIL PROTECTED]> To: flexcoders@yahoogroups.com Sent: Thursday, 29 May, 2008 4:56:53 PM Subject: Re: [flexcoders] the old caching problem... many answers no solution!!! All that html metadata does is assure that the HTML code will be refreshed each and every time the viewer sees the page. But to my knowledge this does not affect whether a media asset such as a flash document (SWF) is refreshed on each pageview. It is impossible to prevent a SWF from apprearing in the browser's cache folder. But you can insert generate the embed and param tags dynamically with javascript, and then using something like: "myFile.swf? nocahe="+ (new Date()).getTime( ) (not excatly sure of the syntax, it's been a while) ...you can assure that the browser will load the SWF anew with each page view/refresh so that the SWF is being fetched from the server each time versus from the browser cache after the first view. But the file will still appear in the browser's cache folder no matter what you do, including runtime loading of a content SWF into a proxy.. I suppose, theoretically you can stream the content SWF from a streaming server such as Red5 or FMS into a bytearray in a host SWF and convert the bytecode into usable content, but I've never tried it, and do not know how you would implement the particulars. This would be the only way to ensure that the SWF never appears in the browser cache. Usually it's more important to secure the data in the application than the application itself. Better to apply a bytecode obfuscator than to go through all that trouble unless you're doing work for the military or something. ____________ _________ _________ _________ _________ _________ _ Joseph Balderson | http://joeflash.. ca Flex & Flash Platform Developer | Abobe Certified Developer & Trainer Author, Professional Flex 3 (coming Winter 2008) Staff Writer, Community MX | http://communitymx. com/author. cfm?cid=4674 mailamannow wrote: > Hi > > Following is the Code available at > http://livedocs. adobe.com/ flex/3/html/ help.html? content=performa nce_05.html > > (1)Where exactly to use it so as to prevent client side caching? > > Cache-control: no-cache, no-store, must-revalidate, max-age=-1 > Pragma: no-cache, no-store > Expires: -1 > > (2)is there a better way to prevent that when i m not using php, jsp, > https service, flex data service, and all > the stuff whose tutorials are mostly available when i google for the same. > > i simply want my swf not to be cached by the browser. please guide > > Thanks > > > ------------ --------- --------- ------ > > -- > Flexcoders Mailing List > FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt > Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups Links > > > > ------------------------------------------------------------------------------ Meet people who discuss and share your passions. Join them now.