G
Guest
I want to write code to prevent IE from caching my pages at certain times.
The following META tags prevent the page from caching but images still cache:
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
I tried do it with asp.net but also found this only stoped pages from being
cached but not images:
Response.AppendHeader("Cache-Control", "no-cache")
Response.AppendHeader("Pragma", "no-cache")
Response.Cache.SetCacheability(HttpCacheability.NoCache)
The only thing I've found that has prevented images and pages from being
cached is setting HTTP Headers on IIS but I don't think I can turn this on
and off programatically. Does anyone have any ideas?
The following META tags prevent the page from caching but images still cache:
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
I tried do it with asp.net but also found this only stoped pages from being
cached but not images:
Response.AppendHeader("Cache-Control", "no-cache")
Response.AppendHeader("Pragma", "no-cache")
Response.Cache.SetCacheability(HttpCacheability.NoCache)
The only thing I've found that has prevented images and pages from being
cached is setting HTTP Headers on IIS but I don't think I can turn this on
and off programatically. Does anyone have any ideas?