-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added support for https and http/2 #5316
Conversation
I think Austin's stuff is based on my branch here: https://github.com/AnalyticalGraphicsInc/cesium/tree/http2. To be honest, I'm not sure of the benefit of running http2 locally for Cesium development (which is why I didn't take it further), but maybe it's worth having it as an option. That being said, we would probably want some keys available so it can be used out of the box without having to pass command line arguments. I haven't looked at this yet, but I'll try to carve out some time next week. |
Well locally you don't need currently http/2. But in some cases you need https for local development if you are working e.g. with GPS and device motions (chrome gives already a warning that using this sensor over HTTP is deprecated and will be not possible in future versions). And if you are using https you can also switch to http/2, because I don't see any contra by using http/2. Btw.: We are using the server script as base for our public server with some advantage (e.g. http authentification, blocking access to server.js), because I have no preference which server I'm using for static content (and apache2 & http/2 is ugly ;-) ). Even if you are using a server script not basing on example server script it is a good example to other developers what a server could support (not all developers know http/2 and if they take a look into this script they will see that there exists a new version of HTTP protocol) |
Sounds like this or some variation of it will be useful. Once we converge, please also
|
Makes it really sense to add a new section to Readme.md? Because are already getting help with option |
@SunBlack for the doc, users need to be able to discover it, and they probably will not with the |
I have modified Changed.md now. @Readme: There is a hint in Reade.md that you can see more options if you enter |
…ttp2_support # Conflicts: # CHANGES.md
@mramato what's your opinion on this PR? Do you think we want to add this option to |
Thanks again for your contribution @SunBlack! No one has commented on this pull request in 30 days. Maintainers, can you review, merge or close to keep things tidy? I'm going to re-bump this in 30 days. If you'd like me to stop, just comment with I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome. 🌍 🌎 🌏 |
Thanks for opening this PR @SunBlack, but unfortunately this isn't a priority for us right now. We'll revisit something like this when we get back to working on http2 related changes. |
I added support of HTTPS and HTTP/2 to my server. As far as I can see existing branch for http here does not have options to configure it, so I push my implementation for general use.
HTTP/2 will be only used on HTTPS, because no browser is supporting it over HTTP. Nevertheless we could always use
spdy
as server, because it will fall back to HTTP/1.1 in case browser does not support HTTP/2. Because of this fallback I don't know if we really need option--disableHTTP2
.