Skip to content

Commit

Permalink
Keep user list up to date in IE11
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarfonts committed Nov 15, 2016
1 parent 0061c2a commit 54682ce
Showing 1 changed file with 7 additions and 0 deletions.
Expand Up @@ -74,6 +74,13 @@
$scope.isLoadingUsers = false;
$scope.isLoadingGroups = false;

// This is to force IE11 NOT to cache json requests
if (!$http.defaults.headers.get) {
$http.defaults.headers.get = {};
}
$http.defaults.headers.get['Cache-Control'] = 'no-cache';
$http.defaults.headers.get['Pragma'] = 'no-cache';

$http.get('info?type=categories&_content_type=json').
success(function(data) {
$scope.categories = data.metadatacategory;
Expand Down

0 comments on commit 54682ce

Please sign in to comment.