Title: Support gzip in httpclient requests made on platform-server (with Universal) · Issue #46930 · angular/angular · GitHub
Open Graph Title: Support gzip in httpclient requests made on platform-server (with Universal) · Issue #46930 · angular/angular
X Title: Support gzip in httpclient requests made on platform-server (with Universal) · Issue #46930 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? platform-server Description HttpClient on platform-server uses node-xhr2 under the hood. As such it doesn't support content compression (pwnall/node-xhr2#17). While...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? platform-server Description HttpClient on platform-server uses node-xhr2 under the hood. As such it doesn't support content ...
X Description: Which @angular/* package(s) are relevant/related to the feature request? platform-server Description HttpClient on platform-server uses node-xhr2 under the hood. As such it doesn't support cont...
Opengraph URL: https://github.com/angular/angular/issues/46930
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Support gzip in httpclient requests made on platform-server (with Universal)","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\nplatform-server\n\n### Description\n\nHttpClient on platform-server uses `node-xhr2` under the hood. As such it doesn't support content compression (https://github.com/pwnall/node-xhr2/issues/17).\r\nWhile it might not be the greatest problem for requests made within the same datacenter (to our own apis), it impacts requests to external apis.\r\nAlso it negatively impacts local development experience (via `npm run dev:ssr`).\r\n\r\nThere is a related issue in the angular/universal repo - closed due to lack of support form the underlying node-xhr2 library. On the other hand, that library might never support it if no interest is expressed from the Angular team. Also the node-xhr2 author actually [mentioned](https://github.com/pwnall/node-xhr2/issues/17#issuecomment-415593037) they currently work on Google - which can make it easier to make a case for adding this feature.\n\n### Proposed solution\n\nImplement gzip support in the underlying `node-xhr2` library, update the dependency in Angular.\n\n### Alternatives considered\n\n- Roll our own implementation / fork of node-xhr\r\n- Use some other xhr-compatible node implementation (node-xhr2 doesn't seem to be actively maintained anyway)","author":{"url":"https://github.com/amakhrov","@type":"Person","name":"amakhrov"},"datePublished":"2022-07-21T19:45:19Z","url":"https://github.com/angular/angular/issues/46930"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:25aa22de-da9b-2906-3233-27095e14aed2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D94A:DA744:161737E:1DB1F67:6B014377 |
| html-safe-nonce | 63b6f708e174cfb019d7d7511d86eb167c8fc9af7cf1b1ef9d4fc2ef6ebb963f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEOTRBOkRBNzQ0OjE2MTczN0U6MURCMUY2Nzo2QjAxNDM3NyIsInZpc2l0b3JfaWQiOiI0NDQzNDA2NjUwMzU0Nzc4OTk5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 163a3163a5bc3c826cb3e22ab24a3054e5f1948e450a646738f63fa0b7cdcffb |
| hovercard-subject-tag | issue:1313723264 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/46930/issue_layout |
| twitter:image | https://opengraph.githubassets.com/04205343e87f304d591328264ac1fae356fa45d48c6851c0481a31476496a16d/angular/angular/issues/46930 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/04205343e87f304d591328264ac1fae356fa45d48c6851c0481a31476496a16d/angular/angular/issues/46930 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? platform-server Description HttpClient on platform-server uses node-xhr2 under the hood. As such it doesn't support content ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | amakhrov |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width