Link to home
Create AccountLog in
Avatar of cehrnow
cehrnow

asked on

IE9 back button

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 ?
Avatar of Rainer Jeschor
Rainer Jeschor
Flag of Germany image

Avatar of cehrnow
cehrnow

ASKER

Thanks Rainer but using:

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

..did not make any difference.
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

Hi,

You can also do a quick - CTRL + F5.

Adding Cache information to Response Header is more reliable solution!

Hope it helps u...
Avatar of cehrnow

ASKER

Did try...

Response.Cache.SetCacheability(HttpCacheability.NoCache)

...which doesn't appear to make any difference.
Thats weird because I have this running correctly and is used in production. Do you have some compression enabled in the web.config?
Or caching
Avatar of cehrnow

ASKER

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 ?
ASKER CERTIFIED SOLUTION
Avatar of Stephan
Stephan
Flag of Netherlands image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of cehrnow

ASKER

Thanks stephanonline - that works !