Are there any plans to support proxying through http2? #5661
benatshippabo
started this conversation in
Ideas
Replies: 1 comment
-
In case it can help, see https://gist.github.com/xfournet/068592b3d1ddd488427b874b23f707bf |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently, when we have a proxy setup, Vite will downgrade from http2 to http1. This invalidates the assumption that because we use http2, serving many files through Vite will not have a significant performance impact.
This leads to a suboptimal developer experience when proxying is required.
Currently the
http-proxy
dependency that vite uses is unmaintained (they have been trying to do http2 proxying and it has not progressed in the last seven years). And while http1 proxying may work for now, as http3 approaches Vite will fall further and further behind internet standards.What I think we can do for now is to use
http2-proxy
since it appears to at least be updated more frequently and actually allows for proxying through http2.context:
#4184
https://philipwalton.com/articles/using-native-javascript-modules-in-production-today/
Beta Was this translation helpful? Give feedback.
All reactions