Like the general Internet many prohibit the caching of code, sometimes unreliable, then you just in the operation of the page plus on it, in the page to specify the new page to be directed, and then point back, see whether it will not be back to the operation of the page, has actually been the history to delete
' ' ' ' ' ', ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ' ', ' ' ASP ' script
Response.Buffer = True
Response.ExpiresAbsolute = Now ()-1
Response.Expires = 0
Response.CacheControl = "No-cache"
asp.net script
Copy Code code as follows:
Response.buffer=true;
Response.expiresabsolute=datetime.now.addseconds (-1);
response.expires=0;
Response.cachecontrol= "No-cache";
ASP Disables caching additions:
Response.ExpiresAbsolute =now ()-1
Response.expires=0
Response.cachecontrol= "No-cache"
Ajax coercion does not cache the method
1. Add a random number
Xmlhttp.open ("Get", "ajax.asp?now=" + New Date (). GetTime (), true);
2, write a block of code to prevent caching in the ASP page to be obtained asynchronously:
Response.Buffer =true
Response.ExpiresAbsolute =now ()-1
Response.expires=0
Response.cachecontrol= "No-cache"
3, in the AJAX send the request before adding Xmlhttp.setrequestheader ("if-modified-since", "0"); You can disable caching
Xmlhttp.open ("Get", URL, True);
Xmlhttp.onreadystatechange = callhtml;
Xmlhttp.setrequestheader ("If-modified-since", "0");
Xmlhttp.send ();
4, Header ("Cache-control:no-cache, must-revalidate");