Conbsider the code:
var searchResource = function(token) {
var _url = ['my_url', '/somePAth'].join('');
return $resource(_url, {}, {
query: {
timeout: 300000,
method: 'GET',
headers: {
Auth: 'my_token'
}
}
});
};
When I user timeout: 10
I got timeout exception immidiatelly but when I set it to 300000
any responce ends up with 30s (not 300s). It there another settings for timeout, say maxTimeout for all angularjs resources? How to make $resource wait more time than 30s?
Browser is GoogleChrome 65.0.3325.181
Angularjs version 1.5.11
The problem was on backend, not at angular side. (https://docs.aws.amazon.com/apigateway/api-reference/resource/integration/#timeoutInMillis)
Many thanks for comments about backend.