Avatar of ChrisTERiS
 asked on

Refresh page after clicking browse back button

In page "A" there is a link to page "B". How I can force refresh of page "A" when user clicks the back button being in page "B"?

Avatar of undefined
Last Comment

8/22/2022 - Mon
Kiran Paul VJ

Why do need to refresh page A? Is it due to cache problems.

Add no cache headers in page A so that browsers will not cache it.

<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="0">

Clear browser cache manually before checking.

Thank you, but is not a cache problem. In page A there is an Ajax grid. Leaving the page I'm storing the grid's status in cookied and when user comes back, I'm restoring them. The code below works fine with IE but not with FF, Chrome etc. The only that I noticed is that if I refresh the page it loads the cookies. That's why I asked how I can refresh the page.
<script type="text/javascript"> 
	if ($.browser.msie == true) {         
		function warning() 
		window.onload = warning; 		
	} else {   
jQuery(window).ready(function() {

Open in new window


Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

The other solution didn't worked. So I spent my time searching till to find a working solution.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck