As I mentioned in my previous email, use the following to refer to your flash SWF file, no backend code required:
"myFile.swf?"+ (new Date()).getTime( ) You'll need to use it in Javascript tags, such as SWFObject or the default adobe tags. You can easily modify the index.template.html file to have Flex Builder include this code in all its html files. What it does is use js to append a unique number on the end of the filename, making the browser think it's being asked to get a new file each and every time, which assures that the browser will always fetch the file from the server. _______________________________________________________________________ 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 amandeepsingh bajwa wrote: > 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 <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 <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 > <http://livedocs.adobe.com/flex/3/html/help.html?content=performance_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 <http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ..txt> > > Search Archives: http://www.mail- archive.com/ flexcoders% > 40yahoogroups. comYahoo > <http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo>! Groups > Links > > > > > > > > > > > ------------------------------------------------------------------------ > Meet people who discuss and share your passions. Join them now. > <http://in.rd.yahoo.com/tagline_groups_7/*http://in.promos.yahoo.com/groups/bestofyahoo/> > >