當前位置:
首頁 >
前端技术
> javascript
>内容正文
javascript
JSP页面去缓存
頁面框架中經常有緩存,看不到最新的結果很是無語。最近在網上收集到比較有效的方法記錄下來以備后用。
在頁面開始加入下面的設置感覺還不錯response.setHeader("cache-control","no-cache");response.setHeader("pragma","no-cache");response.setHeader("Cache-Control","no store");//HTTP 1.1 response.setHeader("Pragma","no store");//HTTP 1.0 response.setDateHeader("Expires",0);//在代理服務器端防止緩沖
?
?
轉載于:https://www.cnblogs.com/tanglong8848/archive/2012/01/06/3010739.html
總結
- 上一篇: vscode主题 webstorm_从
- 下一篇: 通过扩展改善ASP.NET MVC的验证