We've got a website which is having intermittent caching problems -- as soon as the user clears their cache the problems are not recreatable for some unforceable time for that user. The website is hosted at GoDaddy, so I can't change IIS settings. This caching problem is threatening the entire business model.
I should mention this appears to be affecting IE8 only, it has not been known to happen on IE7, Safari, Chrome, or Firefox.
I have put Response.Cache.SetCacheability(HttpCacheability.NoCache); in the page load, I have put <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="Expires" CONTENT="-1"> in the header.
I just found the following, do I need to put this on every page, will it fix the problem, or do we need to find a host that will turn off caching and does anybody have any idea what host does that?
Response.ClearHeaders();
Response.AppendHeader("Cache-Control", "no-cache"); //HTTP 1.1
Response.AppendHeader("Cache-Control", "private"); // HTTP 1.1
Response.AppendHeader("Cache-Control", "no-store"); // HTTP 1.1
Response.AppendHeader("Cache-Control", "must-revalidate"); // HTTP 1.1
Response.AppendHeader("Cache-Control", "max-stale=0"); // HTTP 1.1
Response.AppendHeader("Cache-Control", "post-check=0"); // HTTP 1.1
Response.AppendHeader("Cache-Control", "pre-check=0"); // HTTP 1.1
Response.AppendHeader("Pragma", "no-cache"); // HTTP 1.1
Response.AppendHeader("Keep-Alive", "timeout=3, max=993"); // HTTP 1.1
Response.AppendHeader("Expires", "Mon, 26 Jul 1997 05:00:00 GMT"); // HTTP 1.1
Thanks