On the *server*, set the Cache-Control header to "max-age=0, must-
revalidate" to disable caching of the resource.  Most server-side 
technologies (PHP, JSP, etc.) will allow you to specify header 
values.  The headers of the response, not the request, are what 
control client-side caching, which is why you need to set the values 
on the server instead of in the client-side HTTPService request.

Search the archives for Cache-Control and you'll find plenty of posts 
on the subject.  I remember seeing exampples for JSP, PHP, and CF.

--- In flexcoders@yahoogroups.com, Guido <[EMAIL PROTECTED]> wrote:
>
> Is there a way to specify the HTTPService to no-cache mode? If I 
access the
> URL with a browser I can get the *real* destination with CTRL+F5... 
I don't
> know how to make an HTTPService use this kind of request; I don't 
even know
> if it is possible. Anyone?
> 
> On 6/7/07, Christopher Olsen <[EMAIL PROTECTED]> wrote:
> >
> >   Yeah from my experiences with the flash player it appears that 
it uses
> > the browser for network connections to fetch files... and the 
browser
> > does the caching....
> > I have a poor workaround i modify the httpservice url and keep 
appending
> > a timestamp to the url but there must be a better way?
> >
> > -Christopher
> >
> > Guido wrote:
> > >
> > > I've had the same issue and I wasn't able to bypass it. In my 
case, I
> > > access an XML file throug HTTPService, and I always get the 
same XML
> > > even if I modify (or even delete!) the file from the server
> > >
> > > On 6/7/07, *Christopher Olsen* <[EMAIL PROTECTED]<cwolsen%
40domainatlantic.com>
> > > <mailto:[EMAIL PROTECTED] <cwolsen%40domainatlantic.com>>>
> > wrote:
> > >
> > > Anyone ever have an issue where an HTTPService result gets 
cached?
> > >
> > > I'm use an httpservice to call a script which generates html 
however
> > > after the time run it's always returning the same results the 
*data*
> > > appears to be cached
> > >
> > > -Christopher
> > >
> > >
> > >
> >
> >  
> >
>


Reply via email to