get请求:
1,修改url加上new Date().getTime();等同于加上?v=1;
2,在服务器加响应头
response.setContentType("text/html;charset:UTF-8");
response.addHeader("prama","no-cache");
response.addHeader("cache-control","no-cache");
response.addHeader("expires","o");
get请求:
1,修改url加上new Date().getTime();等同于加上?v=1;
2,在服务器加响应头
response.setContentType("text/html;charset:UTF-8");
response.addHeader("prama","no-cache");
response.addHeader("cache-control","no-cache");
response.addHeader("expires","o");
转载于:https://www.cnblogs.com/shininguang/p/4817002.html