Hi
I am having problems with trying to prevent the caching of page content. I have
written a filter
public void doFilter (ServletRequest request,
ServletResponse response,
FilterChain chain)
{
try
{
HttpServletResponse httpResponse = (HttpServletResponse) response;
httpResponse.setHeader("Cache-Control", "no-cache");
httpResponse.setHeader("Expires", "0");
httpResponse.setHeader("Pragma", "no-cache");
chain.doFilter (request, response);
} catch (IOException io) {
System.out.println("IOException");
} catch (ServletException se) {
System.out.println("ServletException");
}
}
and IE5, IE6 and Netscape 6.2 still cache each page. What do I need to do
to make them not cache pages?
Cheers
Tony
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html