-----------------------------
Please read the FAQ!
<http://java.apache.org/faq/>
-----------------------------

When even THAT doesn't work (sigh), then you'll have to make sure the URL is actually 
different each time.  Place a bogus parameter at the end of it each time.  I usually 
do something like

  http://foo.com/servlet/bar?count=1

And then increment the value assigned to "count" every time the page is served.  Ugly, 
but it fools even the stupidest browsers.

Travis

At 12:07 PM 09/13/1999 -0700, Shane Holland wrote:
>
>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:
>> 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!

Travis Low - [EMAIL PROTECTED]
MindQ Publishing 11490 Commerce Park Drive #400 Reston VA 20191-1532 USA
http://www.mindq.com
+1 703 262 6616 (direct)
+1 703 716 0237 (fax)

"Is your belly full of bats?" -- Tiernan Low


--
--------------------------------------------------------------
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]

Reply via email to