yeah thats what I do but I use this method instead
var d:Date = new Date();
url += "?" + d.getTime().toString();
url += "?" + d.getTime().toString();
that way I know for sure the number will always be different :p
and it is the flash player that caches it ( only if you use the flash player alone otherwise yes it does use your browser ). if you run the SWF file on it's own ( using flash player but not within a browser ) it remembers it.
My guess is that the flash player remembers the URL and the contents it recieved.
On 4/14/06, JesterXL <[EMAIL PROTECTED]> wrote:
Via code you can append a random number to the URL. Since it's generally
unique each time, it almost never reads from the cache. I reckon if you
build your URL dynamically for HTTPService, you can ensure it'll never be
cached.
var url : String = "http://www.server.com/file.php";
url += "?" + String ( Math.random() * 9999) ;
----- Original Message -----
From: "Dave Wolf" < [EMAIL PROTECTED]>
To: <[email protected]>
Sent: Thursday, April 13, 2006 7:58 PM
Subject: [flexcoders] Re: [Flex2.0] How can I control cache of HTTPService
inside FlashPlayer?
Set the proper cache control headers on the server side. The player
is not caching this, the browser is. The player piggy backs on the
browsers HTTP stack generally.
--
Dave Wolf
Cynergy Systems, Inc.
Macromedia Flex Alliance Partner
http://www.cynergysystems.com
Email: [EMAIL PROTECTED]
Office: 866-CYNERGY
--- In [email protected], "sn197412" <[EMAIL PROTECTED]>
wrote:
>
> Hi.
>
> I have a question.
> How can I control cache of HTTPService inside FlashPlayer?
>
> I get XML file that is always different contents each request.
> But HTTPService show content that was got at first access.
>
> How should I?
>
> --Shigeru
>
> http://Shigeru-Nakagaki.com
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

