This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

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

Hierdie gesprek is in die argief. Vra asseblief 'n nuwe vraag as jy hulp nodig het.

Why "Response.Cache.SetAllowResponseInBrowserHistory(False)" and "Response.Cache.SetCacheability(HttpCacheability.NoCache)" don't work with FireFox 3.x???

  • 1 antwoord
  • 18 hierdie probleem
  • 1 view
  • Laaste antwoord deur oyuky_leal

more options

I have created a website and I don't want user to use Back button to see previous pages. How to disable History in FireFox 3.x and above? The following code doesn't seem to work:

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Response.Cache.SetAllowResponseInBrowserHistory(False)Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetNoStore() Response.Expires = 0

End Sub

Thanks, Ashish

I have created a website and I don't want user to use Back button to see previous pages. How to disable History in FireFox 3.x and above? The following code doesn't seem to work: Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Response.Cache.SetAllowResponseInBrowserHistory(False)Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetNoStore() Response.Expires = 0 End Sub Thanks, Ashish

All Replies (1)

more options

en asp .net con C# se resuelve colocando unicamente en el Page_Load:

Response.Cache.SetNoStore(); Response.Cache.SetCacheability(HttpCacheability.No Cache);

Saludos.