随笔 - 40, 文章 - 0, 评论 - 20, 引用 - 0
数据加载中……

小技巧_jsp缓存问题的解决

如果一直为jsp的缓存问题困扰的话,可以试试在jsp中加入以下几句话:

<head>
<meta http-equiv="Cache-Control" content="max-age=0" forua="true" />
<meta http-equiv="Cache-Control" content="no-cache" forua="true"/>
<meta http-equiv="Cache-Control" content="must-revalidate" forua="true" />
</head>

max-age=30 就表示缓存的最长存在时间是30s,no-cache表示无缓存,must-revalidate表示每次访问必须重新验证是否有更新!

posted on 2006-04-04 15:11 月亮 阅读(649) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航: