HTTP/2 dev server
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 399
- Forks
- 119
- Avg merge
- 20h 59m
- Merged PRs (30d)
- 65
Description
Describe the feature
In development mode, large chunks of JS code create a large number of parallel HTTP/1.1 requests.
And browsers like Chromium limit the max-connections-per-server to 6, which will quickly become overwhelming.
In my case, a single http request would wait nearly 6 sec before being sent, with a response within milliseconds.
I tested this idea by using Caddy (which can handle HTTP/2 requests) as a reverse proxy for the development server. It successfully reduces the wait time for individual requests to milliseconds (and all in parallel!).
I believe that if the Nuxt dev server could support HTTP/2 directly, we could achieve even better performance than my workaround. 😉
Additional information
- Would you be willing to help implement this feature?
- unjs/listhen#206
- Could this feature be implemented as a module?
Final checks
- Read the contribution guide.
- Check existing discussions and issues.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading the referenced unjs/listhen#206 discussion and the Nuxt CLI development-server entry point. Confirm how the current server handles HTTP/1.1 requests and define the validation needed for direct HTTP/2 support, including parallel asset requests and development-mode behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- nuxt, typescript
- Domain
- cli, networking
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100