Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

How to prevent caching in Firefox? I've tried all <meta> and asp.net advices without result. I can hit back and re-enter a site after logout.

  • 2 replies
  • 3 have this problem
  • 1 view
  • Last reply by numlock04

more options

I'm using in the html header:

      <meta http-equiv="Pragma" content="no-cache" />
      <meta http-equiv="Expires" content="-1">

In Page_Load() I have:

       Response.Cache.SetNoServerCaching()
       Response.Cache.SetNoStore()

Still, after logout, the back button is loading a cached version of the previous page with the user logged in!!!

How can I prevent this?

I'm using in the html header: <meta http-equiv="Pragma" content="no-cache" /> <meta http-equiv="Expires" content="-1"> In Page_Load() I have: Response.Cache.SetNoServerCaching() Response.Cache.SetNoStore() Still, after logout, the back button is loading a cached version of the previous page with the user logged in!!! How can I prevent this?

All Replies (2)

more options

try if this work

modify browser.cache.disk.enable and browser.cache.memory.enable and network.http.use-cache

type in the address bar about:config

then press the button i'll be careful i promise

then type in the bar browser.cache.disk.enable

then double click on it, to make it FALSE

exit firefox and restart-it.


do the same with browser.cache.memory.enable

and with network.http.use-cache


if you want to read more:

http://kb.mozillazine.org/Browser.cache.disk.enable

http://kb.mozillazine.org/Browser.cache.memory.enable

http://kb.mozillazine.org/Network.http.use-cache


thank you

Please mark "Solved" the answer that really solve the problem, to help others with a similar problem.

Modified by ideato

more options

The issue is not turning off the local caching. My problem is how to prevent the page being cached, what should I put in page or in the asp code to make Firefox skip the caching.