Solved

IE9 back button

Posted on 2013-05-25
10
361 Views
Last Modified: 2013-05-27
When using the back button in IE9 the previous page does not actually get called (i.e. when debugging in VS2010 cannot break in the page) but it does when using FireFox and Chrome. Any ideas how to force it to do so ?
0
Comment
Question by:cehrnow
10 Comments
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 39197504
0
 

Author Comment

by:cehrnow
ID: 39197516
Thanks Rainer but using:

Press F12 and go to the tab Cache and check Always refresh from server

..did not make any difference.
0
 
LVL 16

Expert Comment

by:Stephan
ID: 39199056
You best need to set this at the response object:
Response.Expires = 0;
Response.Cache.SetNoStore();
Response.AppendHeader("Pragma", "no-cache");

Open in new window

0
 
LVL 23

Expert Comment

by:Roopesh Reddy
ID: 39199486
Hi,

You can also do a quick - CTRL + F5.

Adding Cache information to Response Header is more reliable solution!

Hope it helps u...
0
 

Author Comment

by:cehrnow
ID: 39199533
Did try...

Response.Cache.SetCacheability(HttpCacheability.NoCache)

...which doesn't appear to make any difference.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 16

Expert Comment

by:Stephan
ID: 39199538
Thats weird because I have this running correctly and is used in production. Do you have some compression enabled in the web.config?
0
 
LVL 16

Expert Comment

by:Stephan
ID: 39199539
Or caching
0
 

Author Comment

by:cehrnow
ID: 39199545
Not that I can see and certainly nothing intentionally. Particularly frustrating as okay with FF and Chrome but not IE9 or IE10. Is your production site based on .NET 4 ?
0
 
LVL 16

Accepted Solution

by:
Stephan earned 500 total points
ID: 39199564
Just created a new app and tested in IE10 and works on my end.

There is the code I used:
public ActionResult Index()
        {
            Response.Expires = 0;
            Response.Cache.SetNoStore();
            Response.AppendHeader("Pragma", "no-cache");
            return View(DateTime.Now);
        }

        public ActionResult Index2()
        {
            return View("Index", DateTime.Now);
        }

Open in new window



*edit*
I tested this on .NET 2.0, 4.0 and 4.5
0
 

Author Closing Comment

by:cehrnow
ID: 39199868
Thanks stephanonline - that works !
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now