-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of Mike Cronin
Sent: Wednesday, May 29, 2002 2:16 PM
To: [EMAIL PROTECTED]
Subject: Re: how to make webpage with no cache ,servlet and htmlHey Bill,This will cause the servlet to re-load each and every time.response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0); //prevents caching at the proxy serverAdditional info can be found at...and...Hope this helps ya!Mike CroninData On Call-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet API Technology. [mailto:[EMAIL PROTECTED]]On Behalf Of bill tao
Sent: Wednesday, May 29, 2002 2:11 PM
To: [EMAIL PROTECTED]
Subject: how to make webpage with no cache ,servlet and htmlHi,
I am currently struggling with one problem. I am trying to make the webpage i created using java servlet having no cache, that means. user can not go back to previous page by clicking "back" button on the menu bar of browser. I wrote some code, but it donesn't work in IE.
out.println("<META HTTP-EQUIV=\"PRAGMA\" CONTENT=\"NO-CACHE\">");
out.println("<META HTTP-EQUIV=\"Pragma-directive\" CONTENT=\"no-cache\">");
out.println("<META HTTP-EQUIV=\"cache-directive\" CONTENT=\"no-cache\">");
out.println("<META HTTP-EQUIV=\"Expires\" CONTENT=\"0\">");
out.println("<html>");
// out.println("<body bgcolor=aquamarine text=black>");
out.println("<head>");
out.println("<title> lab exam </title>");..........
Does anyone can help me out? it will be really appreciated.
Thanks in advance
bill
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
Thanks
Mike, I was looking for this also.
