dcsimg
Disable Cache
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   kiran_mana
Posted On:   Friday, December 7, 2001 03:49 AM

How to disable cache on browsers automatically? any body tried this..?
if so give a sample code...



Thanks in Advance,
kiran.

Re: Disable Cache

Posted By:   Alex_Chaffee  
Posted On:   Monday, December 17, 2001 01:05 AM

Re: Disable Cache

Posted By:   Elamathi_Sambandam  
Posted On:   Monday, December 10, 2001 10:30 AM

try using the following code in jsp/servlet

<%
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 server
%>
About | Sitemap | Contact