----- Original Message -----
Sent: Tuesday, June 04, 2002 11:54
PM
Subject: question about to prevent
servlet page not be cached again
hi, Although i have tried several ways but none of them works.
I am using java servlet with IE5.0.
first in doGet i wrote
res.setHeader("Cache-Control","no-cache"); // HTTP 1.1
res.setHeader("Pragma","no-cache");
// HTTP 1.0
res.setDateHeader ("Expires",
-1);
in html i wrote the code as
<html><head>
out.println("<META HTTP-EQUIV=\"Pragma\"
CONTENT=\"no-cache\">");
</head>
<body>......</body><head> out.println("<META
HTTP-EQUIV=\"Pragma\" CONTENT=\"no-cache\">");
</head>
</html>
Anyone can help me to solve the problem. That would be great help for me.
I have struggled with this problem with many hours.
Thanks in advance
bin
Do You Yahoo!?
Sign-up
for Video Highlights of 2002 FIFA World
Cup