var app = angular.module('manager', ['ngRoute']);

app.config(['$routeProvider', function($routeProvider) {
$routeProvider
.when("/index", {
templateUrl: "/Templates/index.html",
controller: IndexCtrl
})
.when("/search", {
templateUrl: "/Templates/search.html",
controller: SearchCtrl
})
.when("/baseSettings", {
templateUrl: "/Templates/baseSettings.html",
controller: BaseSettings
})
.when("/aboutTech", {
templateUrl: "/Templates/aboutTech.html",
controller: AboutTech
})
.otherwise({ redirectTo: "/index" });
}]); app.config(["$httpProvider", function($httpProvider) {
if( !$httpProvider.defaults.headers.get ) {
$httpProvider.defaults.headers.get = {};
} // 禁用 IE AJAX 请求缓存
$httpProvider.defaults.headers.get['If-Modified-Since'] = 'Mon, 26 Jul 1997 05:00:00 GMT';
$httpProvider.defaults.headers.get['Cache-Control'] = 'no-cache';
$httpProvider.defaults.headers.get['Pragma'] = 'no-cache';
}]);

参考:

http://stackoverflow.com/questions/16098430/angular-ie-caching-issue-for-http

最新文章

  1. webix前端架构的项目应用
  2. ASP.NET 显示项目之外的图片
  3. Python安装
  4. 用openvswitch配置跨节点的docker网络环境
  5. nginx禁止ip直接访问
  6. mysql一次添加多条记录
  7. Servlet Examples
  8. 如何解决ORA-12547: TNS:lost contact错
  9. 第三章 Netty入门应用
  10. 理解Device Tree Usage(续)
  11. 【转】Android 之最新最全的Intent传递数据方法
  12. html5 contenteditable 实现table可编辑(网页版EXCEL)
  13. 整理 logging 2种方式
  14. URL编码规则
  15. Hbase总结(六)hbase37个笔试题
  16. .NET 中的 async/await 异步编程
  17. bean-json-bean-json 工具
  18. invalidate和requestLayout方法源码分析
  19. Python并行编程(二):基于线程的并行
  20. Java小型知识点

热门文章

  1. sql语句与 数据库
  2. oracle数据本机自动备份
  3. webpack 代码拆分,按需加载
  4. CentOS 7 安装 Oracle 11g
  5. jQuery中的事件机制深入浅出
  6. UISwitch控件的使用
  7. [zz] demand require request用法辨析
  8. 黄聪:MySQL 按指定字段自定义列表排序
  9. 关于查询扩展版ESI高被引论文的说明
  10. centos7优化mysql5.6配置