-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------
In my experience the only way to prevent caching to set the date and
last-modified headers to the (same) current date. This will prevent anyone
from caching your documents, including most corporate proxies. I haven't had
much success using the pragma: no-cache header/directive.
On Mon, 13 Sep 1999, Pat O'Neil wrote:
> -----------------------------
> Please read the FAQ!
> <http://java.apache.org/faq/>
> -----------------------------
>
> jon * wrote:
> >
> > > Jackie Sladky wrote:
> > >
> > > I have a few existing web pages, and each time I make any modifications,
> > > large or small, users have to clear out their Cache in order to receive my
> > > new page.
> >
> > I suggest that you look at what the server is returning for the
> > Last-Modified headers.
>
> If you are returning dynamic content from servlets, try something like
>
> res.setHeader("Pragma", "no-cache"); or
> res.setHeader("Cache-Control", "no-cache");
>
> early in your servlet. If you are seeing this with static html pages,
> you can override this behavior by using something like:
>
> <META HTTP-EQUIV="Expires">
>
> Although it should not be necessary if you are getting accurate
> Last-Modified headers as Jon mentioned.
> --
> Pat O'Neil - [EMAIL PROTECTED]
>
> "Linux, where you want to BE, when Windows(tm) tells you where to GO!
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
>
Shane Holland
Salon.com -- http://salon.com/
[EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]