Skip to content

PMTiles on servers that break HTTP Range

Choose a tag to compare

@github-actions github-actions released this 10 Nov 23:07
· 44 commits to main since this release
  • mapoffline.js - GitHub Pages gzip-compresses .pmtiles files and cuts ranges from the compressed bytes, so browsers reject or corrupt the pieces; the 0.0.27 offline example failed live because of it. When a Range request fails or returns the wrong length, the file is now downloaded whole once and read from memory, with a console warning. Covered by a new test that simulates such a server.