响应头里添加禁止浏览器缓存的内容
2021-08-06 11:08:11
Cache-Control: no-cache, no-store, must-revalidate
Pragma: no-cache
Expires: 0
Cache-Control
用于HTTP1.1(包括1.1)以上;Pragma
用于HTTP1.0;Expires
用于代理服务器缓存。response.setHeader("Cache-Control", "no-cache, no-store, must-revalidate");
response.setHeader("Pragma", "no-cache");
response.setHeader("Expires", "0");