Every time on chinaasp always have a lot of netizens asked how to make the ASP page refresh, IIS4 management under the page does not refresh the problem is much more serious than IIS5, and sometimes do add some control of the page cache statement or not what role. Why I am not very clear, to ask Microsoft Bar:-)
Now I'll summarize some ways to clear the page cache as follows:
1, in the ASP page first join
Response.Buffer = True
Response.ExpiresAbsolute = Now ()-1
Response.Expires = 0
Response.CacheControl = "No-cache"
Response.AddHeader "Pragma", "No-cache"
2, in the HTML code to join
<HEAD>
<meta http-equiv= "Pragma" content= "No-cache" >
<meta http-equiv= "Cache-control" content= "No-cache" >
<meta http-equiv= "Expires" content= "0" >
</HEAD>
3, when the original page is called back to pass a parameter to the page
Href= "****.asp?random ()"
In fact, the use of IIS5 after such problems naturally less a lot, so now I rarely use such a few words to force the update page, the above is our original in IIS4 under the development of some experience, hope to give you a little help!