HInclude caching issue in Internet Explorer
I've been using HInclude ( http://www.mnot.net/javascript/hinclude/ ) for a long time now and it works great, but there is one problem. The portion of my site loaded with HInclude is not refreshed every time I click the back button in Internet Explorer (also 6.x + and 7.0). It works great in other browsers. I tried setting the cache-control and pragma in the header to "no-Cache". but even that doesn't work. I want HInclude to fetch new content every time the user clicks the back button or revisits a page with hx content. How can i do this?
source to share
A full traffic capture will be helpful to see exactly what your server is sending. That being said, the IE team has worked in IE9 to ensure that the back button is not hit by the server, as allowed by RFC2616 and as implemented in other browsers.
Before IE9, the feedback behavior was pretty creepy / buggy and whether the server depended on whether the page had explicit caching directives and what the IE user cache settings were (see halfway through this one). In practice, the server was hit much more often than it should (this, of course, never).
If I recall correctly, I think one of the mistakes before IE9 was that if the headers contained in the caching were to be overridden, the client would not pull the file out of the cache.
-Erik
source to share