Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #1757 from oscarfonts/update-userlist-ie11
Browse files Browse the repository at this point in the history
Update user list on IE11 (admin interface)
  • Loading branch information
Delawen committed Nov 15, 2016
2 parents 0061c2a + 54682ce commit c8691cc
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 c8691cc

Please sign in to comment.