Have you ever written asp programs like this? The Code has been changed, but it is the result of previous code running when I use IE to view it! If this problem cannot be solved, it is very annoying.
The cache mechanism is of course good for improving the efficiency of the program when it is officially running, but we should avoid this situation in the development stage.
I checked the information today. There are many possibilities for this situation. To ensure that we can always see the page after the latest changes, follow these steps:
1. Set IEAS "check every time you access this page"
2. Add
<%
Response. Expires = 0
Response. Expiresabsolute = Now ()-1
Response. AddHeader "pragma", "no-cache"
Response. AddHeader "cache-control", "private"
Response. CacheControl = "no-cache"
%>
3. Enable Web page expiration in IIS. In particular, for windows 2003, "All websites" on the MMC console (note all websites !) Click properties, and then select "Do not cache ASP page"