Closed tannewt closed 3 years ago
Hi @tannewt thanks for updating the PR. Regarding the compressible flag, from what I understand of protobuf is that it is simply a serialization format, that itself is not compressible (binary). But the contents that are being serialized inside that container may make it compressible within for example strings or byte arrays. Can you provide some specific examples of what this file looks like that demonstrates that it is compressible? Unfortunately the answer of "I know it's compressible" is no longer acceptable as folks come here to then argue about what we have in the database. We need some kind of source to link to that speaks on this data point.
Thanks @dougwilson. Could you give me an example of a url that satisfies this? I just did compression on some local files I have and they went from 717M to 607M.
I can't speak for the type you are proposing, but as an example here is what was provided recently for some font types: http://www.phpied.com/gzip-your-font-face-files/
Thanks! That's what I was hoping for. Unfortunately, I found https://wiki.openstreetmap.org/wiki/PBF_Format which states individual blocks may be compressed. So, I've removed it from here. (I'm not sure why the extension changed from mvt to pbf but it's the same format.)
From: https://www.iana.org/assignments/media-types/application/vnd.mapbox-vector-tile
This will allow compression of the files when statically hosted.