简体   繁体   中英

How to update webpage when you back from the redirected page?

I use some logic to redirect to new page.

 return RedirectToAction("Index");

So when I back from this page via BACK BROWSER BUTTON I want to update "old" page automatically so it should have default values.

Is it possible to do?

This doesn't really have anything to do with MVC. The back button behaviour is browser dependent, so the back button in IE will behave differently in FireFox. I know in FF if you use the back button on a page, it goes directly to the cached 'snapshot' of the last page and it won't refresh automatically, nor (as far as i know) will it execute code.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM