That's a good point--POSTs won't get cached unless something is seriously borked. See also this note from URLRequest docs:
=== Note: If running in Flash Player and the referenced form has no body, Flash Player automatically uses a GET operation, even if the method is set to URLRequestMethod.POST. For this reason, it is recommended to always include a "dummy" body to ensure that the correct method is used. The default value is URLRequestMethod.GET. === In my opinion, using a POST for something that's really a GET that you do not want cached is a little more bogus than appending a dummy parameter, but whatever floats your boat. -- Maciek Sakrejda Truviso, Inc. http://www.truviso.com -----Original Message----- From: Tracy Spratt <tspr...@lariatinc.com> Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] how to avoid cacheing XML Date: Fri, 17 Apr 2009 12:21:21 -0400 If you have control over the server, you are supposed t be able to set html headers that prevent caching, but there are so many server and browser combinations, well, good luck. Note, if you use POST to fetch your data, it should not cache. Tracy Spratt, Lariat Services, development services available ________________________________________________________________________ From:flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Maciek Sakrejda Sent: Friday, April 17, 2009 12:00 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how to avoid cacheing XML Flex is at the mercy of the browser when it comes to things like HTTP request caching. -----Original Message----- From: David Pariente <xxmapach...@yahoo.es> Reply-to: flexcoders@yahoogroups.com To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] how to avoid cacheing XML Date: Fri, 17 Apr 2009 22:46:39 +0700 Thnx, I was wondering if there was a not so ugly technic for do that...reminds me my old times with AS...seems nothing changed...wonder why there is a tool for do so in AIR while there is not in FLEX.... En/na Maciek Sakrejda ha escrit: > > > The foolproof (albeit ugly) way of doing this is to append a dummy > variable, e.g., the current time, to your request: > > http://localhost/myapp/my.xml?time=128478334 > <http://localhost/myapp/my.xml?time=128478334> > > You can do this by adding a Date().getTime() parameter to your > URLVariables. > -- > Maciek Sakrejda > Truviso, Inc. > http://www.truviso.com <http://www.truviso.com> > > -----Original Message----- > From: David Pariente <xxmapach...@yahoo.es > <mailto:xxmapachexx%40yahoo.es>> > Reply-to: flexcoders@yahoogroups.com <mailto:flexcoders% 40yahoogroups.com> > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> > Subject: [flexcoders] how to avoid cacheing XML > Date: Thu, 16 Apr 2009 22:16:14 +0700 > > Hi all, > > I have a Flex3 app where i load an XML using URLRequest object. > When i makechanges to the XML and upload it to the server, Flex still > loads the old cached XML file. > > I saw there are options for specify not to cache content, but, seems > they are only available to Air apps. > > How could i set it up for NEVER cache my XML file?? > > Thanx in advance :) > >