Article ID: 199805
Article Last Modified on 5/18/2007
User agents often have history mechanisms, such as "Back" buttons and
history lists, which can be used to redisplay an entity retrieved
earlier in a session.
History mechanisms and caches are different. In particular history
mechanisms SHOULD NOT try to show a semantically transparent view of
the current state of a resource. Rather, a history mechanism is meant
to show exactly what the user saw at the time when the resource was
retrieved.
<%@ Language=VBScript %> <% ' The following line is the important part: Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "no-cache" %> <HTML><BODY> <P>This page is using "Cache-Control: no-cache." This page should not be cached for any reason whatsoever. Access to the page via the Back button should pull the page back from the server.</P> <P> Current Time: <%= Now() %> </P> </BODY></HTML>The "Pragma: no-cache" header is not essential but is recommended to prevent caching problems involving proxy servers and older versions of Internet Explorer.
229684 Back Button in Internet Explorer Becomes Unavailable
Keywords: kbcaching kbfaq kbprb KB199805