Help - Search - Members - Calendar
Full Version: Disable Cache
BleepingComputer.com > Software > Programming
   
nagaraj
I have one requirement,
i need to disable cache so that once i logoff from the application, if i click backbutton or refresh in firefox ,the form should not get submitted,
i used this code :
<%
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setDateHeader("Expires", 0); //prevents caching at the proxy server
response.setHeader("Cache-Control", "private"); // HTTP 1.1
response.setHeader("Cache-Control", "max-age=0"); // HTTP 1.1
response.setHeader("Cache-Control", "max-stale=0"); // HTTP 1.1
%>

in IE ITS WORKING FINE, BIT IN MOZILLA FIREFOX ITS NOT WORKING, CAN ANYBODY HELP IN THIS REGARD.
I TRIED VARIOUS OPTIONS OF HEADERS,BUT IN VAIN

THANKS IN ADVANCE
BSN
Scarlett
Hi nagaraj

These links may help.

http://www.mozilla.org/support/firefox/tips

http://www.tweakguides.com/Firefox_1.html
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.