在页面中写入:
两种写法:
1,
1 |
< META HTTP-EQUIV = "nocache" CONTENT = "no-cache" > |
2,
1 |
< HEAD > |
2 |
< META HTTP-EQUIV = "Pragma" CONTENT = "no-cache" > |
3 |
< META HTTP-EQUIV = "Cache-Control" CONTENT = "no-cache" > |
4 |
< META HTTP-EQUIV = "Expires" CONTENT = "0" > |
5 |
</ HEAD > |
JSP中去掉绶存:
1 |
<% |
2 |
response.setHeader( "Pragma" , "No-cache" ); |
3 |
response.setHeader( "Cache-Control" , "no-cache" ); |
4 |
response.setDateHeader( "Expires" , 0 ); |
5 |
%> |
时间: 2024-11-11 12:27:26