Nitin Khattar wrote:
>
> However i checked up all the request headers sent by IE5.0 and
> Netscape 4.7 as well as Opera but none of these browsers sent the header
> 'If-Modified-Since'.
>
> Can you tell me why? and secondly does this mean that the getLastModified()
> of the HttpServlet will be of no use for such cases?
>
Congratulations for actually checking on this, most people just
take for granted that the docs are correct, and often encounter
nasty suprises when they aren't.
But ... it looks like there might have been a flaw in your
experimental method, because Netscape definitely does send
If-Modified-Since. How are you checking the request headers?
This request is from Netscape 4.73, but the other browsers you
mentioned are probably sending If-Modified-Since too:
GET http://.../homepage/ HTTP/1.0
If-Modified-Since: Fri, 28 Apr 2000 05:06:09 GMT; length=2776
Proxy-Connection: Keep-Alive
User-Agent: Mozilla/4.73 [en]
Pragma: no-cache
Host: echidna:8080
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, ...
Accept-Encoding: gzip
Accept-Language: en
Accept-Charset: iso-8859-1,*,utf-8
Note that it wouldn't make sense to send If-Modified-Since
on the first request, or any other time when the document isn't
in the browser's local cache, it only gets sent on a reload or
revisit a page. Also, you might check your browser's preferences
under the "Cache" heading...
-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