Mapbox-gl-js: Add possibility to serve tiles over http2 to improve loading time

Created on 21 Feb 2018  路  14Comments  路  Source: mapbox/mapbox-gl-js

First of all, I really like what you guys do! Thank you for your work!

mapbox-gl-js version: 0.44.1

Steps to Trigger Behavior

  1. Open any map
  2. Check network tab in chrome dev tools (or similar)
  3. Add Protocol column
  4. Scroll map to non-visited area
  5. See the protocol for protobuf requests (HTTP 1.1)

Expected Behavior

It would be good to have an option to serve protobuf tiles over HTTP2 and get benefits from multiplexing.

Actual Behavior

Tiles served over HTTP 1.1

feature

Most helpful comment

I'm a bit surprised this isn't implemented yet. Any news on the progress?

All 14 comments

+1

this seems like it might be as simple as enabling this in your cloudfront configuration: https://aws.amazon.com/about-aws/whats-new/2016/09/amazon-cloudfront-now-supports-http2/

Possible to look at this? I don't think it's feature work, probably as simple as a single configuration change in AWS.

I am using Leaflet to call Mapbox maps and see this as well. Would be great if the maps were served using HTTP/2 protocol.

+1

I using Leaflet and request raster tiles from Mapbox. The requests have a http 1.1 header it seems.

Our server-side teams have this improvement on their radar, but we don't have a timeline for when it will be completed at this time.

+1

+1

I'm a bit surprised this isn't implemented yet. Any news on the progress?

This would be nice.

Any news on this? It would be great!

+1

This issue tracker is for reporting bugs and feature requests to the mapbox-gl-js library. Switching to HTTP/2 does not require any code changes to this library and is handled entirely by the browser. For those using GL-JS with their own servers, this should be possible already.

It is on our teams roadmap to investigate changes to GL-JS that make better use of HTTP/2 connections, but none of that work is planned yet

Please contact support to learn more or to provide more context on your needs for HTTP/2 support.

For those who are interested, I contacted support. I'm not sure which issue they will be updating on github if not this. Here is the reply:

Hey there,
The switch to HTTP/2 poses some challenges for Mapbox's infrastructure and we are undergoing tests and working with our customers to ensure that there are no disruptions to existing deployments when the switch may be made. For now, we will keep customers notified via the GitHub repository.

Rafa Gutierrez
Mapbox Support

Was this page helpful?
0 / 5 - 0 ratings

Related issues

aderaaij picture aderaaij  路  3Comments

BernhardRode picture BernhardRode  路  3Comments

yoursweater picture yoursweater  路  3Comments

rasagy picture rasagy  路  3Comments

Scarysize picture Scarysize  路  3Comments