kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaofeng...@apache.org
Subject [05/17] kylin git commit: KYLIN-2335, http request always use cache data in IE10 or IE11
Date Thu, 05 Jan 2017 07:21:07 GMT
KYLIN-2335,http request always use cache data in IE10 or IE11

Signed-off-by: zhongjian <jiatuer@163.com>


Project: http://git-wip-us.apache.org/repos/asf/kylin/repo
Commit: http://git-wip-us.apache.org/repos/asf/kylin/commit/89e4b53d
Tree: http://git-wip-us.apache.org/repos/asf/kylin/tree/89e4b53d
Diff: http://git-wip-us.apache.org/repos/asf/kylin/diff/89e4b53d

Branch: refs/heads/sparkcubing-rebase
Commit: 89e4b53daaeadda3945bc796a09ee9e8dd90de9c
Parents: 5be4bba
Author: luguosheng <550175214@qq.com>
Authored: Thu Dec 29 14:13:24 2016 +0800
Committer: zhongjian <jiatuer@163.com>
Committed: Thu Jan 5 11:26:30 2017 +0800

----------------------------------------------------------------------
 webapp/app/js/config.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kylin/blob/89e4b53d/webapp/app/js/config.js
----------------------------------------------------------------------
diff --git a/webapp/app/js/config.js b/webapp/app/js/config.js
index 95cfc1a..5f72eb2 100644
--- a/webapp/app/js/config.js
+++ b/webapp/app/js/config.js
@@ -38,7 +38,9 @@ var Config = {
 
 // Angular module to load routes.
 KylinApp.config(function ($routeProvider, $httpProvider, $locationProvider, $logProvider)
{
-
+    //resolve http always use cache data in IE11,IE10
+    $httpProvider.defaults.headers.common['Cache-Control'] = 'no-cache';
+    $httpProvider.defaults.headers.common['Pragma'] = 'no-cache';
     // Set debug to true by default.
     if (angular.isUndefined(Config.debug) || Config.debug !== false) {
       Config.debug = true;


Mime
View raw message