You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cancel a request when cached data is available #926
I would like to send a request and have Restangular intercept and resolve the request if cached data is available. This may be related to #589 but I came up with a jsfiddle which demos how I'm attempting to do this: http://jsfiddle.net/astrism/q9qyox50/13/
The request is still made when the code runs. Any ideas?
I wrote example, using decorator for $http, that caching request promise to prevent multiple request to the same url
Example here (http://jsfiddle.net/referee/hh30bh0q/)
Activity
f0def commentedon Feb 13, 2015
Change
to
Example here http://jsfiddle.net/q9qyox50/14/
fmclopes commentedon Feb 14, 2015
The request is cancelled but the cached data is not sent.
Any suggestions?
f0def commentedon Feb 15, 2015
I wrote example, using decorator for $http, that caching request promise to prevent multiple request to the same url
Example here (http://jsfiddle.net/referee/hh30bh0q/)
grabbou commentedon Feb 22, 2015
To review & update docs.
daviesgeek commentedon Jun 17, 2016
Will update docs with referenced issue #1391
feat(docs) Add FAQ about cancelling request