N
N
nuclear_kote2016-08-17 19:58:30
Angular
nuclear_kote, 2016-08-17 19:58:30

Is it possible to create a response in a request interceptor?

In general, the task is as follows: I cache the results of requests and if there is a cache, I would like to return this cache before the end of the request timeout to the service + I would like not to cancel the request itself, so that if the request returns a new result, it will be replaced with it and the cache will be updated accordingly.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Kustikov, 2016-08-26
@nuclear_kote

https://github.com/bennadel/DeferredWithUpdate.js - this should help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question