Answer the question
In order to leave comments, you need to log in
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
https://github.com/bennadel/DeferredWithUpdate.js - this should help
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question