清缓存

xwawa2001 2003-09-13 08:21:34
我编写了一个JSP错误页的程序想清一下缓存,用什么语句。
...全文
40 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
dby_ 2003-09-14
  • 打赏
  • 举报
回复
response.setHeader("param","No-cache");
response.setHeader("cache-cntrol","no-cache");
response.setDateHeader("Express",0);
0是页面生存周期,你可以指定时间
dmhorse 2003-09-13
  • 打赏
  • 举报
回复
flushBuffer
public void flushBuffer()
throws IOException
Forces any content in the buffer to be written to the client. A call to this method automatically commits the response, meaning the status code and headers will be written.

IOException
See Also:
setBufferSize(int), getBufferSize(), isCommitted(), reset()

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧