Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Disable Cache


  • Please log in to reply
1 reply to this topic

#1 nagaraj

nagaraj

  • Members
  • 1 posts
  • OFFLINE
  •  
  • Local time:12:22 AM

Posted 09 June 2006 - 09:30 AM

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

BC AdBot (Login to Remove)

 


#2 Scarlett

Scarlett

    Bleeping Diva


  • Members
  • 7,479 posts
  • OFFLINE
  •  
  • Gender:Female
  • Location:As always I'm beside myself ;)
  • Local time:01:52 PM

Posted 09 June 2006 - 09:39 AM

Hi nagaraj

These links may help.

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

http://www.tweakguides.com/Firefox_1.html
Posted Image




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users