mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-23 10:45:45 +01:00
update for compatiblity with IE11.
This commit is contained in:
parent
f2cbce3021
commit
c55e885679
@ -21,6 +21,19 @@
|
||||
$interpolateProvider.endSymbol('//');
|
||||
})
|
||||
.config(function($httpProvider) {
|
||||
//initialize get if not there
|
||||
if (!$httpProvider.defaults.headers.get) {
|
||||
$httpProvider.defaults.headers.get = {};
|
||||
}
|
||||
|
||||
// Answer edited to include suggestions from comments
|
||||
// because previous version of code introduced browser-related errors
|
||||
|
||||
//disable IE ajax request caching
|
||||
$httpProvider.defaults.headers.get['If-Modified-Since'] = 'Mon, 26 Jul 1997 05:00:00 GMT';
|
||||
// extra
|
||||
$httpProvider.defaults.headers.get['Cache-Control'] = 'no-cache';
|
||||
$httpProvider.defaults.headers.get['Pragma'] = 'no-cache';
|
||||
$httpProvider.defaults.headers.common = {'Accept': 'application/json, text/javascript, */*; q=0.01'};
|
||||
$httpProvider.interceptors.push('redirectInterceptor');
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user