Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

IE9 back button

Posted on 2013-05-25
10
383 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
Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
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
 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

829 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