res.setHeader("Cache-Control", "no-cache");
res.setHeader("Pragma", "no-cache");
res.setDateHeader("Expires", -1);
//请求和响应的信息都不应该被存储在对方的磁盘系统中;
res.addHeader( "Cache-Control", "no-store");
//于客户机的每次请求,代理服务器必须想服务器验证缓存是否过时;
res.addHeader( "Cache-Control", "must-revalidate");
原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/industrynews/13326.html