Ok i finally got it('If-Modified-Since' Header). I set the response header
"Last-Modified" as under
res.setDateHeader("Last-Modified",System.currentTimeMillis();
----- Original Message -----
From: "nitin" <[EMAIL PROTECTED]>
To: "A mailing list for discussion about Sun Microsystem's Java Servlet API
Technology." <[EMAIL PROTECTED]>
Sent: Monday, September 18, 2000 9:23 PM
Subject: Re: 'If-Modified-Since' Header
> This is the method which i have added to the Servlet
>
> public long getLastModified(HttpServletRequest req) {
> return new Date().getTime() /1000 * 1000;
> }
>
> it doesnt work still....
>
>
>
> ----- Original Message -----
> From: "Christopher K. St. John" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 18, 2000 7:43 PM
> Subject: Re: 'If-Modified-Since' Header
>
>
> > Nitin Khattar wrote:
> > >
> > > I tried out on Netscape 4.7 and IE 5.0. None of them send the
> If-Modified
> > > Header.
> > >
> >
> > I'm going to change your original question from "Why doesn't
> > my browser send If-Modified-Since" to "Why doesn't my browser
> > send If-Modified-Since when I use it to access my servlet?'
> >
> > Have you added the getLastModified method to your servlet?
> > That way, the servlet sets the Last-Modified header, and the
> > browser can use the Last-Modified time when it sends the
> > If-Modified-Since header in the request.
> >
> > The browser shouldn't use the If-Modified-Since header unless
> > it has a date from the server, since the clocks on the server
> > and the client are likely to be at least a couple of seconds
> > out of synch.
> >
> > From the HTML spec, sec 14.25:
> >
> > Note: ... To get best results when sending an If-
> > Modified-Since header field for cache validation, clients are
> > advised to use the exact date string received in a previous Last-
> > Modified header field whenever possible.
> >
> >
> > -cks
> >
> >
>
___________________________________________________________________________
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
> >
>
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html