-
Notifications
You must be signed in to change notification settings - Fork 48
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
Suggestion: Use compression for downloadable map tiles #14
Comments
Thanks for the idea. We will look at that. |
We have packed the planet file and it has 34 GB (out of 47 GB) with default gzip option. |
Inside of .mbtiles the .pbf files are gzipped - we did not expect such a huge saving with additional compression - but based on your numbers it would make sense to turn it on indeed. The problems are:
Static gzip with nginx: Static gzip with s3: Clients not able not gunzip would fail, but there is not many such clients anymore. In desktop web browsers this would run fine. We have to verify how to correctly download gzipped files on the command line - ideally with continue option: The Curl has: The behavior on command line must be verified first. |
Hey,
I was downloading a file
mbtiles
files for a map, and noticed that the files were uncompressed. I checked with gzip, and was able to get a compression ratio of0.56
for f.ex. Chile and0.68
for Canada:Given that the files are static and rarely updated, wouldn't it be prudent to have them compressed?
By compressing them statically, and then setting the
Content-Transfer-Encoding
header, the end result for clients should be identical to what it is now (as browsers will decode them before saving ..). That, or just serve up the.gz
files so clients will know they're GZipped.The text was updated successfully, but these errors were encountered: