Skip to content

hin522/angularjs-ie-cache-ajax-get

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

AngularJS_IE_cache_ajax_GET

For AngularJS app that use $http.get, IE8/9 caches Ajax GET request and returns the result from browser cache with a 304 http response, rather than going to the server.

The AngularJS $httProvider can be configured to turn off the cache.

Note:

Using Angularjs $http with cache = false does NOT work with IE.

$http({method: 'GET', url: url, cache: false});

The other option could fall back to JQuery with cache = false

$.ajax({
  url: '/some/url',
	type: 'GET',
	cache: false,
	success: function(status) {
	 ...
	}
});	

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published