uuuuppps!!!
this had nothing to do with your question... i had a long day!
just hit DELETE (forgive me).
 
-mw
----- Original Message -----
Sent: Wednesday, June 05, 2002 12:27 AM
Subject: Re: question about to prevent servlet page not be cached again

hi!
maybe you could try something different: use not-modified.
 
hope this helps!
 
-mw
----- Original Message -----
From: bill tao
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

Reply via email to