Use the following code to prevent the proxy from caching your dynamic pages
in either your servlets or JSPs:

    // Disable the browser cache
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control", "no-cache");
    response.setDateHeader("Expires", 0);

The response object is an instance of interface 
javax.servlet.http.HttpServletResponse. Works like a charm for us and we are behind 
the same proxy
version as yours.

HTH,
Greg.





[EMAIL PROTECTED] on 2002/08/20 01:18:36 AM

Please respond to "JDJList" <[EMAIL PROTECTED]>

To:   "JDJList" <[EMAIL PROTECTED]>
cc:

Subject:  [jdjlist] POST cached by MSProxy


Hello,

We have a servlet based application that generates
HTML dynamically based on data taken from a database.
Servlet invocations are based on HTTP POST requests.
This application was working fine when one fine morning
MSProxy 2.0 was installed at the facilities where we
work at. Ever since the application (that is hosted
on the internet) does not work properly when accessed
from the browsers within our facilities.

It appears that the caching proxy MSP 2.0 is caching
even the POST requests. Does any body have experience
with this problem? Is the diagnosis of the problem
correct? What is the solution?

Regards,

Diptendu Dutta
Aunwesha
Kolkata, INDIA

To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm







To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm

Reply via email to