There has been a very similar question asked almost two years ago, but never solved, and now I'm running into what seems like the same exact issue with MVC 4 in IE9. I have a test site set up as plainly as possible. When I run it, it seems to work just fine. All the css is loaded, all the scripts imported, etc. But when I click the back button, virtually everything goes away.
Now, the virtually everything is an important note because a mostly static layout (with the exception of an @{ Html.RenderPartial("_MyNavPartial") }
and a @RenderBody()
call) returns nothing at all while another page that has a table populated with data from a service call still returns the data, with the css formatting applied to it no less. But the navigation partial is gone, and so are all of the css settings for the table's alignment on the page. When I refresh the page, it all comes back.
According to Fiddler, when the back button is hit, nothing at all comes back and viewing source shows nothing but basic markup with no content at all. The page with the table shows only the table and the css ids although the id applied to the <body>
disappears.
I've tried disabling caching, changing the @Url.ActionLink()
calls to @Url.Action()
and even static URLs just to see if some dynamic content was in the way, and still have the exact same problem. Again, this only applies to IE9. Everything works perfectly fine in Chrome and Firefox, which makes me think there's some sort of setting that's off. What could it possibly be? Thanks ahead everyone!