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
When using @defer the expectation is that the deferred parts are surfaced as soon as they arrive.
However, the current implementation of CachingHttpInterceptoris reading the whole HttpResponse in order to cache it, before returning it. In effect this waits for all the chunks to be received, and so they're not emitted as they go.
A possible solution would be to have a body 'delegate' which writes to the cache as it is read. An example of this existed in v2 here.
Note: this is also true of LoggingInterceptor albeit since this is used as a debugging tool, this can be considered OK (adding a warning on the doc would be nice).
The text was updated successfully, but these errors were encountered:
When using
@defer
the expectation is that the deferred parts are surfaced as soon as they arrive.However, the current implementation of
CachingHttpInterceptor
is reading the wholeHttpResponse
in order to cache it, before returning it. In effect this waits for all the chunks to be received, and so they're not emitted as they go.A possible solution would be to have a body 'delegate' which writes to the cache as it is read. An example of this existed in v2 here.
Note: this is also true of
LoggingInterceptor
albeit since this is used as a debugging tool, this can be considered OK (adding a warning on the doc would be nice).The text was updated successfully, but these errors were encountered: