Skip to content

v1.6.2 — fix stale tile cache + dead CARTO allowlist left over from v1.6.1 - #11

Merged
DrummingBird1 merged 1 commit into
mainfrom
fix/stale-tile-cache-carto-cleanup
Sep 2, 2026
Merged

DrummingBird1 merged 1 commit into
mainfrom
fix/stale-tile-cache-carto-cleanup

Conversation

@DrummingBird1

Copy link
Copy Markdown
Owner

Summary

v1.6.1 (545ab08) swapped the map's light/dark tile provider from CARTO to Esri, fixing the "API KEY REQUIRED" watermark. This PR closes three gaps that fix left behind:

  • The service worker's separate tile cache (TILE) was never bumped. That cache is deliberately excluded from the activate handler's cleanup so offline map areas keep working — but that also means it survives every CN bump. It was still red-alert-tiles-v1, the same version used while CARTO's watermarked tiles were being cached. Bumped to v2.
  • Dead basemaps.cartocdn.com allowlist entries left in CSP img-src and the SW's tile-cache hostname check, unused since v1.6.1. Removed — server.arcgisonline.com is now the only tile host anywhere in the app.
  • No maxNativeZoom on the Esri Canvas base+reference layers. Unlike World_Imagery, their real tile coverage tops out around zoom 16 in most regions — without a cap, Leaflet would request deeper tiles Esri doesn't reliably serve. Added maxNativeZoom:16 so Leaflet upscales the last real tile instead.

Also bumped CN (v16→v17, since index.html changed), APP_VERSION/package.json/CHANGES/CHANGELOG.md to 1.6.2, and refreshed the CLAUDE.md/AGENTS.md map + PWA sections (their version numbers had drifted stale across several prior CN bumps, and neither doc mentioned the TILE-never-auto-clears caveat — plausibly why it got missed in v1.6.1).

Test plan

  • node test/unit.js — 91/91 pass
  • node test/integration.js — 12/12 pass
  • Verified in-browser: light, dark, and satellite basemaps all render cleanly with no watermark
  • Verified maxNativeZoom:16 applied to both the base and reference Canvas layers; zoomed to 18 in Tel Aviv — basemap upscales cleanly, no blank tiles
  • Confirmed no remaining functional references to cartocdn.com anywhere in the repo (only explanatory history comments)

🤖 Generated with Claude Code

…vas zoom

v1.6.1 swapped the map's light/dark tile provider from CARTO to Esri (fixing
the "API KEY REQUIRED" watermark) but missed three follow-on details:

- The service worker's separate tile cache (TILE) was never bumped. That
  cache is deliberately excluded from the SW activate handler's cleanup so
  offline map areas keep working — but that also means it outlives every CN
  bump. Bumped it now so it doesn't keep accumulating dead entries under the
  old cartocdn.com URLs.
- CSP img-src and the SW's tile-cache hostname check still allowlisted
  basemaps.cartocdn.com, unused since the switch. Removed.
- The Esri Canvas base+reference layers don't have real tile coverage past
  zoom ~16 in most regions (unlike World_Imagery). Added maxNativeZoom:16 so
  Leaflet upscales the deepest real tile instead of requesting tiles Esri
  doesn't reliably serve.

Verified in-browser: light/dark/satellite all render cleanly, deep zoom
upscales without blank tiles, 91 unit + 12 integration tests pass.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Sep 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
red-alert Ready Ready Preview Sep 2, 2026 4:44am UTC

@DrummingBird1
DrummingBird1 merged commit ad3ba42 into main Sep 2, 2026
8 of 9 checks passed
@DrummingBird1
DrummingBird1 deleted the fix/stale-tile-cache-carto-cleanup branch September 2, 2026 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant