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