tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Kofon" <pko...@hotmail.com>
Subject Re: AW: JSPs - Cache not
Date Thu, 01 Jan 1970 00:00:00 GMT
Thanks Ralph, it worked like a charm. I set the response headers in my 
Controller servlet and also added the meta tag in the JSP page. Thanks a 
lot.

Regards,

Paul


>From: "Ralph Einfeldt" <ralph.einfeldt@uptime-isc.de>
>Reply-To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
>Subject: AW: JSPs - Cache not
>Date: Wed, 23 Jan 2002 12:24:45 +0100
>
>Never heard a problem like this with an error page.
>
>Nevertheless using following scriptlet can prevent
>a page from caching.
>
><%
>   response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
>   response.setHeader("Pragma","no-cache"); //HTTP 1.0
>   response.setDateHeader("Expires", 0); //prevents caching at the proxy
>server
>%>
>
>Additionally you might include some meta tags in the html
><meta http-equiv="expires" content="0">
>There are some others, which I don't have at hand.
>Have a look at: http://vancouver-webpages.com/META/
>
> > -----Ursprüngliche Nachricht-----
> > Von: Paul Kofon [mailto:pkofon@hotmail.com]
> > Gesendet: Mittwoch, 23. Januar 2002 11:50
> > An: tomcat-user@jakarta.apache.org
> > Betreff: JSPs - Cache not
> >
> >
> > Hi all,
> > How do I stop browsers (both IE and Netscape) from caching a
> > JSP page. I
> > thought it was somewhere in the spec. I've looked but I can't
> > find anything
> > useful.
> > I've noticed that when there's an error in my web application
> > and my error
> > page gets displayed, I still get the same error page even
> > after the error is
> > corrected. The correct page appears only when I hit the
> > reload button while
> > the error page is showing. I believe this is so because the
> > error page is
> > cached. If that's right, then I have to stop it from being
> > cached. How?
> > Note: I'm using Tomcat 4.0.1 (Internet Explorer 5.x/6.0)
> > Thanks.
> >
> > _________________________________________________________________
> > Join the world's largest e-mail service with MSN Hotmail.
> > http://www.hotmail.com
> >
> >
> > --
> > To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> > For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
> > Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
> >
> >
> >
>
>--
>To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
>For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
>Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>
>


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message