Skip to content

Instantly share code, notes, and snippets.

@droyad
Created May 12, 2015 07:04
Show Gist options
  • Save droyad/50d7cc4a135f6fc7eb2b to your computer and use it in GitHub Desktop.
Save droyad/50d7cc4a135f6fc7eb2b to your computer and use it in GitHub Desktop.
Disable IE Caching for Angular
module.config(['$httpProvider', function ($httpProvider) {
//initialize get if not there
if (!$httpProvider.defaults.headers.get) {
$httpProvider.defaults.headers.get = {};
}
//disable IE ajax request caching
$httpProvider.defaults.headers.get['If-Modified-Since'] = '0';
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment