Linked Questions
32 questions linked to/from Angular IE Caching issue for $http
668 votes
12 answers
174k views
Why does JavaScript only work after opening developer tools in IE once?
IE9 Bug - JavaScript only works after opening developer tools once. Our site offers free pdf downloads to users, and it has a simple "enter password to download" function. However, it doesn't work at ...
212 votes
9 answers
216k views
Prevent Caching in ASP.NET MVC for specific actions using an attribute
I have an ASP.NET MVC 3 application. This application requests records through jQuery. jQuery calls back to a controller action that returns results in JSON format. I have not been able to prove this, ...
66 votes
11 answers
141k views
How to detect browser using angularjs?
I am new to angularjs. How can I detect userAgent in angularjs. Is it possible to use that in controller? Tried something like below but no luck! var browserVersion = int((/msie (\d+)/.exec(...
60 votes
10 answers
65k views
Better Way to Prevent IE Cache in AngularJS?
I currently use service/$resource to make ajax calls (GET in this case), and IE caches the calls so that fresh data cannot be retrieved from the server. I have used a technique I found by googling to ...
78 votes
7 answers
53k views
Prevent IE11 caching GET call in Angular 2
I have a rest endpoint that returns a list on a GET call. I also have a POST endpoint to add new items and a DELETE to remove them. This works in Firefox and Chrome, and the POST and DELETE work in ...
23 votes
4 answers
36k views
Disabling AngularJS $http cache
I'm trying to disable the cache in my AngularJS app, but it isn't working with the following code: $http.get("myurl",{cache:false}) When I use "myurl&random="+Math.random(), the cache is disabled;...
22 votes
2 answers
10k views
IE 11 + SignalR not working
Strange behavior is happening when using signalR with IE 11. Scenario: We have some dispatcher type functionality where the dispatcher does some actions, and the other user can see updates live (...
3 votes
6 answers
3k views
AngularJS: refresh view after location change
I have an application with 2 views\controller: app.config(function ($routeProvider, $locationProvider) { $routeProvider .when("/", { templateUrl: "/vw/managment", ...
5 votes
2 answers
6k views
Angularjs' $http.get only executed once in IE11
I'm learning angularjs, and as a test project I'm polling a server that returns a list of active processes (their pids) and displaying these. The client code looks like this: <!DOCTYPE html> &...
6 votes
1 answer
9k views
how to change the headers for angularjs $http.jsonp
I read the document. but I think I must have misunderstood it. $http.defaults.headers.jsonp = { 'Accept' : 'application/json'}; $http.jsonp(url).success(function(data, status, headers, config) { I ...
3 votes
4 answers
3k views
Office Add-ins Caching my HTML file
For god knows what reason, Office Add-ins on my local word client is Caching a html file that I dynamically load in (through angular) and refuses to give me a way to remove it from the cache. My only ...
1 vote
2 answers
5k views
Chrome cache overriding angularjs disabling of cache
I am facing a peculiar issue wrt caching. I am using chrome currently I have angularjs service as below var url = '/api/acts/' + accountId + '/policy/?filter=NEW_POLICY'; return $http(...
0 votes
2 answers
4k views
Caching issue in angularJS application
I've an admin panel which is a pure angularJS application, which uses REST api for data manipulation. REST api is built using SlimAPI framework and Laravel's Eloquent ORM. I'm facing caching issue in ...
0 votes
1 answer
2k views
AngularJS post returning status code 304 instead of posting to play backend
I have created a simple form with as below controller is as below angular.module('clientApp') .controller('SignupCtrl', function ($scope, $http, $log, alertService, $location, userService) { ...
1 vote
2 answers
2k views
Check if a dependency is being injected in Angular
As discussed here, IE is bad about caching things when using ajax (i.e., $route and $http). A brilliant solution to this problem can be found here. We use many angular apps on our site, so in an ...