几种防止页面缓存的有效方法

下面提供了 html 防止页面缓存的处理方法,代码如下

php网页

header("expires:mon,26jul199705:00:00gmt");header("cache-control:no-cache,must-revalidate");header("pragma:no-cache");

jsp网页

response.addheader("pragma", "no-cache");

html做法

<meta http-equiv=’pragma’ content=’no-cache’> <meta http-equiv=’cache-control’ content=’no-cache, must-revalidate’> <meta http-equiv=’expires’ content=’0′> <base target="_self">

asp做法

<% response.buffer = true response.expiresabsolute = now() – 1 response.expires = 0 response.cachecontrol = "no-cache " %>

不要气馁于那前方的阴影,那只是因为我背后光芒万丈

几种防止页面缓存的有效方法

相关文章:

你感兴趣的文章:

标签云: