rsp*_*rsp 24
这将在响应上将缓存设置为禁用:
// Set standard HTTP/1.1 no-cache headers.
response.setHeader("Cache-Control", "private, no-store, no-cache, must-revalidate");
// Set standard HTTP/1.0 no-cache header.
response.setHeader("Pragma", "no-cache");
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
20121 次 |
| 最近记录: |