浏览器有默认的缓存机制,不同的浏览器,缓存头是不一样的 设置编码,调用setContentType()方法,参数:”text/html;charset=utf-8” 关闭缓存,调用setHeader()方法:参数: ”Expires”,-1 “Cache-Control”,”no-cache” “Pragma”,”no-cache” 开启缓存,调用setHeader()方法:参数: 调用setDateHeaader()方法,参数:”Expires”,System.currentTimeMils(…