I have an AngularJS application where I am trying to implement download functionality in png/jpeg format.The download is not dependent on backend server.Basically we take the screenshot of current data which is displayed to the user and downloads the same in selected format.SO all of it is handeled in frontend itself. This feature works fine in Chrome and Firefox browsers but in IE 11 when I try to download I am getting warning as
DOM7011: The code on this page disabled back and forward caching.
and I feel may be because of this warning only my download is not working. I read somewhere that AngularJS by default blocks back and forward caching. So I added below code:
var myApp = angular.module('myApp', ['ngRoute']);
myApp.config(['$routeProvider', '$httpProvider', function($routeProvider, $httpProvider) {
$httpProvider.defaults.cache = false;
if (!$httpProvider.defaults.headers.get) {
$httpProvider.defaults.headers.get = {};
}
// disable IE ajax request caching
$httpProvider.defaults.headers.get['If-Modified-Since'] = '0';
//.....here proceed with your routes`
}]);
But still no change. Appreciate any pointer.