[flexcoders] Caching of HTTPService Requests

2005-03-24 Thread viraf_bankwalla


Hi,

It appears that my HTTPService requests are being cached (I do not 
see the request being made to the application).  How can I disable 
the caching of these requests ?

Thanks.







 
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/
 





Re: [flexcoders] Caching of HTTPService Requests

2005-03-24 Thread Manish Jethani

On Thu, 24 Mar 2005 13:42:12 -, viraf_bankwalla
[EMAIL PROTECTED] wrote:

 It appears that my HTTPService requests are being cached (I do not
 see the request being made to the application).  How can I disable
 the caching of these requests ?

I think the web browser caches the results by default, just as it
would cache a normal webpage.  The web server should specify a
no-cache or a Expires attribute in the response headers to prevent
the web browser from caching the request.

Are you going through the Flex proxy?  Is useProxy set on the
HTTPService?  There's people from the Flex server development team who
can give you a better answer.

Manish


 
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/
 





RE: [flexcoders] Caching of HTTPService Requests

2005-03-24 Thread Shell Bryson

Yes, but remember you have no REAL control over how a client caches a
page. Several major browser munge the way they handle caching and/or
offline browsing. There could be multiple caches between the end user
and the server, and one or more of these may totally ignore cache meta
tags. Not something to rely on.

-Original Message-
From: Manish Jethani [mailto:[EMAIL PROTECTED] 
Sent: 24 March 2005 14:04
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Caching of HTTPService Requests


On Thu, 24 Mar 2005 13:42:12 -, viraf_bankwalla
[EMAIL PROTECTED] wrote:

 It appears that my HTTPService requests are being cached (I do not
 see the request being made to the application).  How can I disable
 the caching of these requests ?

I think the web browser caches the results by default, just as it
would cache a normal webpage.  The web server should specify a
no-cache or a Expires attribute in the response headers to prevent
the web browser from caching the request.

Are you going through the Flex proxy?  Is useProxy set on the
HTTPService?  There's people from the Flex server development team who
can give you a better answer.

Manish


 
Yahoo! Groups Links



 





 
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/
 





Re: [flexcoders] Caching of HTTPService Requests

2005-03-24 Thread Manish Jethani

On Thu, 24 Mar 2005 14:12:07 -, Shell Bryson
[EMAIL PROTECTED] wrote:

 Yes, but remember you have no REAL control over how a client caches a
 page. Several major browser munge the way they handle caching and/or
 offline browsing. There could be multiple caches between the end user
 and the server, and one or more of these may totally ignore cache meta
 tags. Not something to rely on.

If you absolutely, totally, seriously :) want to refresh the data,
just append some random string to the URL.  The 'url' property of
HTTPService can be modified at runtime.

Manish


 
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/
 





RE: [flexcoders] Caching of HTTPService Requests

2005-03-24 Thread Matt Chotin










Beyond this though, are you using a JSP or
servlet to return the data? I have found these cache settings to work in all
browsers Ive tried:



 response.setHeader(Cache-Control,
no-cache);

 response.setDateHeader(Expires,
94608000L); //Approx Jan 1, 2000

 response.setHeader(Pragma,
no-cache);



Matt









From: Manish Jethani
[mailto:[EMAIL PROTECTED] 
Sent: Thursday, March 24, 2005
6:36 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Caching
of HTTPService Requests





On Thu, 24 Mar 2005 14:12:07 -, Shell Bryson
[EMAIL PROTECTED] wrote:

 Yes, but remember you have no REAL control
over how a client caches a
 page. Several major browser munge the way
they handle caching and/or
 offline browsing. There could be multiple
caches between the end user
 and the server, and one or more of these may
totally ignore cache meta
 tags. Not something to rely on.

If you absolutely, totally, seriously :) want to
refresh the data,
just append some random string to the URL.
The 'url' property of
HTTPService can be modified at runtime.

Manish













Yahoo! Groups Sponsor


  ADVERTISEMENT 












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 the Yahoo! Terms of Service.