更新后JSP页面未刷新 [英] JSP page is not getting refreshed after updating

查看:125
本文介绍了更新后JSP页面未刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新后,JSP页面没有刷新.我尝试删除浏览器缓存,但是id没有任何作用.任何建议都会有很大帮助.我正在使用Tomcat服务器和Eclipse Ganymede.

JSP page is not getting refreshed after updating. I tried deleting browser cache, but id didn't have any effect. Any suggestion is of great help. I am using Tomcat server and Eclipse Ganymede.

推荐答案

您可以将其放在jsp页面中:

You can put this in your jsp page:

<%
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
response.setHeader("Pragma","no-cache"); //HTTP 1.0
response.setDateHeader ("Expires", 0);
//prevents caching at the proxy server
%>

它不会缓存您的页面

这篇关于更新后JSP页面未刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆