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: [email protected] [mailto:[email protected]] On
Behalf Of Maciek Sakrejda
Sent: Friday, April 17, 2009 12:00 PM
To: [email protected]
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 <xxmapachexx@ <mailto:xxmapachexx%40yahoo.es> yahoo.es>
Reply-to: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.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/ <http://localhost/myapp/my.xml?time=128478334>
myapp/my.xml?time=128478334 
> <http://localhost/ <http://localhost/myapp/my.xml?time=128478334>
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. <http://www.truviso.com> com <http://www.truviso.
<http://www.truviso.com> com>
>
> -----Original Message-----
> From: David Pariente <xxmapachexx@ <mailto:xxmapachexx%40yahoo.es>
yahoo.es 
> <mailto:xxmapachexx%40yahoo.es>>
> Reply-to: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com>
ups.com <mailto:flexcoders%
40yahoogroups.com>
> To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.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 :)
>
> 



Reply via email to