At 12:38 PM 9/16/99 -0700, Zoran Ivankovich wrote:
>This should disable caching of your jsp page output
>
>public static void setNoCache(HttpServletRequest request,
>HttpServletResponse response) {
> if(request.getProtocol().compareTo ("HTTP/1.0") == 0) {
> response.setHeader ("Pragma", "no-cache");
> } else if (request.getProtocol().compareTo ("HTTP/1.1") == 0) {
> response.setHeader ("Cache-Control", "no-cache");
> }
> response.setDateHeader ("Expires", 0);
> }
The HTTP/1.1 spec recommends that HTTP/1.1 servers send _both_ Pragma and
Cache-Control.
Marc Hedlund <[EMAIL PROTECTED]>
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html