Created
May 12, 2015 07:04
-
-
Save droyad/50d7cc4a135f6fc7eb2b to your computer and use it in GitHub Desktop.
Disable IE Caching for Angular
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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