Suresh Addagalla wrote:
>
> Hello,
>
> I would like to specify in my servlet that the page should not be cached
> by the client browser and the proxies. Is there an easier way to do this
> than
> using the setHeader(String,String) to set the value of the 'Expires' header
> to an absolute date?
>
<URL:http://www.mnot.net/cache_docs/#EXPIRES>
has an explanation of how to use HTTP 1.1 cache control headers
to get a relative expiration time, but I'm not sure that that's
particularly easier.
HttpServletResponse::setDateHeader() might save you some string
formatting work?
What exactly do you mean by "easier"?
-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