对html页面和jsp最好都加一些设置对于HTM网页,加入:

<meta HTTP-EQUIV="pragma" CONTENT="no-cache">

<meta HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">

<meta HTTP-EQUIV="expires" CONTENT="0">

然后,jsp页面中加入:

<%
response.setHeader("Cache-Control","no-store");

response.setHeader("Pragrma","no-cache");

response.setDateHeader("Expires",0);

%>

相关文章:

  • 2021-08-11
  • 2022-03-03
  • 2021-11-30
  • 2021-11-30
  • 2021-11-20
  • 2021-12-23
  • 2021-12-27
  • 2021-11-20
猜你喜欢
  • 2022-02-13
  • 2021-12-21
  • 2021-04-04
  • 2021-05-07
  • 2022-01-23
相关资源
相似解决方案