页面缓存问题
2016-05-29 15:31
288 查看
缓存问题
方式1、打开的URL后加一个随机参数,避免缓存;
var sUrl = 'page1.aspx?nocache=' + Math.random();
window.showModalDialog(sUrl, window, "dialogWidth:400px;dialogHeight:400px;status:0;help:0;resizable:0;center:1;");
方式2、设定页面不缓存,在<head>中加入以下代码
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
方式1、打开的URL后加一个随机参数,避免缓存;
var sUrl = 'page1.aspx?nocache=' + Math.random();
window.showModalDialog(sUrl, window, "dialogWidth:400px;dialogHeight:400px;status:0;help:0;resizable:0;center:1;");
方式2、设定页面不缓存,在<head>中加入以下代码
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
相关文章推荐
- 激光散斑原理总结
- 使用spring手动获取Bean的时候,不能强转回它自己。
- Linux目录结构及快捷键
- 14.Tornado高性能的秘密:ioloop对象分析 (副标题:IOLoop是个事件循环)
- 分页工具类
- 1049. 数列的片段和(20)
- DNS 详解
- MySQL学习第四天 Windows 64位系统下使用MySQL
- 单例模式(singleton)
- Java后端WebSocket的Tomcat实现
- 枚举类型的例子和接口一起工作
- 13.从代码分析TCPServer类的机制 (副标题:create-bind-listen)
- Android之使用网络技术
- binutil 工具-----C分析工工具
- Matlab安装 解决error114
- PAT (Advanced Level) Practise 1003. Emergency (25) Dijstra扩展应用
- iOS开发中的UDID和UUID详解
- C++基础<03>—标准库string类型
- Freemarker使用之比较(if)
- 常用数据库URL地址的写法