Setting the HTTP headers is a more effective method of controlling browser
caching
than using the <META> tag equivalents
* Some browsers do not treat the <META> tags in the same way as the
equivalent HTTP header settings.
* On some browsers, the <META> tag equivalents do not work when the
callPage() method is used to load a JSP file that contains the <META> tags.
So try using:
<%
response.setHeader("Cache-Control", "No-cache");
response.setDateHeader("Expires", 0);
%>
-----Original Message-----
From: Charles Luo [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 11:01 AM
To: [EMAIL PROTECTED]
Subject: to reload a page once automatically
Guys,
Just a quick question?
How can I force a page to be reloaded itself once whenever a client click
the 'back' button to the page on the navigation bar of a browser.
I have tried
<meta http-equiv="Cache-Control" content="no-cache">
but, it failed.
Do you have approriate javascript code? or any other solutions?
Thanks a lot!!!
Cheers,
Charles
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets