i wrote a small utility class that does this for me, you could do something
similar and include it at the top of your servlets/jsp
>>>>
package com.wondergeek.web;
import javax.servlet.http.*;
public class Utilities
{
public static void setNoCache(HttpServletResponse response)
{
response.setHeader("pragma", "no-cache");
response.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("Expires", 0);
/* you have to set all this junk to support the different features
(i.e.
bugs) in all the browsers
some support some of the headers, others support the others, so you
end up
having to set them all
to work with any/all browsers combos and proxies */
}
}
>>>>
Utilities.setNoCache(response); // call this at in your pages before you
output content.
i don't believe that this will work for images though, just the page content
(html). if you want to make sure your images are not cached as well, you
can configure your web server to include the above headers on a directory or
file basis.
cheers,
chris
chris wilson
{phone}
tel + 616.471.9142
fax + 616.471.6900
{email}
[EMAIL PROTECTED]
{web}
http://www.wondergeek.com
> -----Original Message-----
> From: A mailing list about Java Server Pages specification and reference
> [mailto:[EMAIL PROTECTED]]On Behalf Of Daniel R nnqvist
> Sent: Monday, November 29, 1999 9:37 AM
> To: [EMAIL PROTECTED]
> Subject: Browser caches.
>
>
> Hello, first of all, sorry for this off-topic post, but as I'm developing
> pages in JSP, I thought someone might know a sollution to my problem with
> JSP, HTML or HTTP headers...
>
>
> Is there a way to force the browser to reload the whole page and ALL of it
> contents (including images) ?
> It can be VERY irritating when I have to go into Internet
> Explorers menu all
> the time and clear the cache. I've tried the header; <META
> HTTP-EQUIV="Pragma" CONTENT="no-cache">
> but it the browser doesn't really care and still refuses to reload the
> contents of the page.
>
> Please help me with this one!
> with regards, Daniel Ronnqvist
>
> ==================================================================
> =========
> 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
>
===========================================================================
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