Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
Hi.
I noticed that this piece of code in packages/common/http/src/transfer_cache.ts gets called on client side:
return next(req).pipe(
tap((event: HttpEvent<unknown>) => {
if (event instanceof HttpResponse) {
transferState.set<TransferHttpResponse>(storeKey, {
[BODY]: event.body,
[HEADERS]: getFilteredHeaders(event.headers, headersToInclude),
[STATUS]: event.status,
[STATUS_TEXT]: event.statusText,
[URL]: event.url || '',
[RESPONSE_TYPE]: req.responseType,
});
}
}),
);
Shouldn't this only be called only on server side? It wastes some memory on client's device
Which @angular/* package(s) are the source of the bug?
core
Is this a regression?
No
Description
Hi.
I noticed that this piece of code in packages/common/http/src/transfer_cache.ts gets called on client side:
Shouldn't this only be called only on server side? It wastes some memory on client's device