ITeye博客

jsp取消缓存

skymr · 2010-03-29 12:27 · java类 · 编程语言 · Cache · JSP · Markdown

<META   HTTP-EQUIV="pragma"   CONTENT="no-cache">  
          <META   HTTP-EQUIV="Cache-Control"   CONTENT="no-cache,   must-revalidate">  
          <META   HTTP-EQUIV="expires"   CONTENT="Mon,   23   Jan   1978   20:52:30   GMT">

 

 

<%
    response.setHeader("Pragma","No-Cache"); 

          response.setHeader("Cache-Control","No-Cache"); 

          response.setDateHeader("Expires",   0); 

%>

 

取消息图片缓存:

 

<img src="path?随机参数">

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。