Well, that fixes the problem for a single client, but what about
other clients? Like Dave pointed out, the real fix for this is at
the server by setting the proper HTTP headers:
<META HTTP-EQUIV="Cache-Control" CONTENT ="no-cache">
<META HTTP-EQUIV="expires" CONTENT="0">
Or from a JSP page, try the following before writing anything to the
output stream:
response.setHeader("Cache-Control","no-cache");
response.setDateHeader ("Expires", 0);
--- In [email protected], sinatosk <[EMAIL PROTECTED]> wrote:
>
> yeah thats what I do but I use this method instead
>
> var d:Date = new Date();
>
> 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" <shigeru_nakagaki@>
> > 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 <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.com
> > Yahoo! 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<http://groups.yahoo.com/group/flexcoders>"
> > on the web.
> >
> > - To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED]<flexcoders-
[EMAIL PROTECTED]>
> >
> > - Your use of Yahoo! Groups is subject to the Yahoo! Terms of
> > Service <http://docs.yahoo.com/info/terms/>.
> >
> >
> > ------------------------------
> >
>
--
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/