last day (15 days later) » 

3:39 PM
0
A: AngularJS : Getting cached result from $http

pankajparkarDon't do $http provider modification inside controller.Do it in configuration level of angular. var myModule = angular.module('myModule',[]); myModule.config(['$httpProvider', function($httpProvider) { //initialize get if not there if (!$httpProvider.defaults.headers.get) { $http...

 
still not working and i'm using chrome
 
are you doing any server side caching?
 
Yes, I'm trying to call a REST API running locally. I tried the API using CURL and its works fine.
 
can you try the same thing in chrome private browsing?
which angular version you're using?
 
I'm using AngularJS 1.2.8 . The issue is like , once if I get a success and data, the same data is returned even if the nothing is returned.
 
3:39 PM
@iJay try updated answer.
 
hi
it doesn't seem to work ....
is there anything else u can suggest .??
 
ok
44
Q: Set HTTP header for one request

dnc253I have one particular request in my app that requires Basic authentication, so I need to set the Authorization header for that request. I read about setting HTTP request headers, but from what I can tell, it will set that header for all requests of that method. I have something like this in my co...

why yo udon't try withCredential: true
in $httpProvider
try

$http.defaults.headers.common['Auth-Token'] = id;
id = ecodedString
 
 
2 hours later…
5:17 PM
Hey
Did you resolve that issue/
 

last day (15 days later) »