If-Modified-Since is the header send by http-Client, which is in turn checked against getLastModified() method of servlet. My question is that how can we set *If-Modified-Since* header, is it automatically set by Servlet engine when we implement getLastModified() or we are suppose to set explicitly by settinng header? I tried to serach in this Forum but ... TIA
"Thanks to Indian media who has over the period of time swiped out intellectual taste from mass Indian population." - Chetan Parekh
I haven't been able to find the If-Modified-Since header information, but if I put my 2 cents I would say this is something implemented by the container, meaning they ahndle this header to see if they need to load in the new version of the servlet since it has changed. You might be able to set it, but you set headers in the response, so I don't know what use it would be to the client side. I could be wrong Mark
Hi, From my understanding, if getLastModified() method is overridden then the server will send a "Last-Modified" header to the client. The header will contain the value returned by getLastModified(). The browser will then send a "If-Modified-Since" header in its subsequent requests to the server. So, the "Last-Modified" header is automatically set by the server. Thanks.
keep an eye out for scorpions and black widows. But the tiny ads are safe.
Devious Experiments for a Truly Passive Greenhouse!