Hi,
I see that my browser insists on loading stale pages from its cache instead of from the server. Can I disable this (not by changing the browser settings)? Is there a way to force the browser to load the page from the server?
Thanks in advance!
Manoj
-
Disabling client side cache... (3 messages)
- Posted by: Manoj Joseph
- Posted on: July 13 2002 00:40 EDT
Threaded Messages (3)
- Disabling client side cache... by Shashi Shekar Madappa on July 14 2002 20:03 EDT
- Disabling client side cache... by ravi chandramohan on July 15 2002 07:59 EDT
- Disabling client side cache... by Bodo Stockschlaeder on July 15 2002 10:00 EDT
-
Disabling client side cache...[ Go to top ]
- Posted by: Shashi Shekar Madappa
- Posted on: July 14 2002 20:03 EDT
- in response to Manoj Joseph
add this in the head part of the html
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Expires" CONTENT="-1">
<META HTTP-EQUIV="Expires" CONTENT="Thur, 01 Jan 1970 08:21:57 GMT"> -
Disabling client side cache...[ Go to top ]
- Posted by: ravi chandramohan
- Posted on: July 15 2002 07:59 EDT
- in response to Manoj Joseph
add this code in your jsp/servlet pages
response.setHeader("Expires", "Mon, 26 Jul 1990 05:00:00 GMT");
response.setHeader("Cache-Control" ,"no-cache, must-revalidate");
response.setHeader("Pragma", "no-cache");
response.setHeader("Cache-Control","no-store"); -
Disabling client side cache...[ Go to top ]
- Posted by: Bodo Stockschlaeder
- Posted on: July 15 2002 10:00 EDT
- in response to Manoj Joseph
Hi,
a very convenient method is to change your web.xml like this (under your servlet-mappings):
<init-param>
<param-name>nocache</param-name>
<param-value>true</param-value>
</init-param>
That's all and it works fine...
cu Bodo