From 87cd10194f66c329b0f85e9d32af043aa153c90c Mon Sep 17 00:00:00 2001 From: Smittix Date: Thu, 29 Jan 2026 09:49:47 +0000 Subject: [PATCH] fix: Add cache-busting parameter to tile URLs Co-Authored-By: Claude Opus 4.5 --- static/js/core/settings-manager.js | 2 +- static/js/modes/meshtastic.js | 2 +- templates/adsb_dashboard.html | 2 +- templates/ais_dashboard.html | 2 +- templates/index.html | 4 ++-- templates/satellite_dashboard.html | 2 +- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/static/js/core/settings-manager.js b/static/js/core/settings-manager.js index 756e38e..e9b26fd 100644 --- a/static/js/core/settings-manager.js +++ b/static/js/core/settings-manager.js @@ -20,7 +20,7 @@ const Settings = { subdomains: 'abc' }, cartodb_dark: { - url: 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', + url: 'https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png?v=2', attribution: '© OpenStreetMap contributors © CARTO', subdomains: 'abcd' }, diff --git a/static/js/modes/meshtastic.js b/static/js/modes/meshtastic.js index 30fbf72..308d303 100644 --- a/static/js/modes/meshtastic.js +++ b/static/js/modes/meshtastic.js @@ -94,7 +94,7 @@ const Meshtastic = (function() { meshMap = L.map('meshMap').setView([defaultLat, defaultLon], 4); // Dark themed map tiles - L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', { + L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png?v=2', { attribution: '© OSM © CARTO', maxZoom: 19 }).addTo(meshMap); diff --git a/templates/adsb_dashboard.html b/templates/adsb_dashboard.html index 47142a2..6f4a8a8 100644 --- a/templates/adsb_dashboard.html +++ b/templates/adsb_dashboard.html @@ -2340,7 +2340,7 @@ sudo make install maxZoom: 15 }); - L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', { + L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png?v=2', { attribution: '© OSM © CARTO', maxZoom: 19 }).addTo(radarMap); diff --git a/templates/ais_dashboard.html b/templates/ais_dashboard.html index 0fb34d8..4ac60b2 100644 --- a/templates/ais_dashboard.html +++ b/templates/ais_dashboard.html @@ -391,7 +391,7 @@ }); // Dark themed map tiles - L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', { + L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png?v=2', { attribution: '© OSM © CARTO', maxZoom: 19 }).addTo(vesselMap); diff --git a/templates/index.html b/templates/index.html index 4378e3d..87c1405 100644 --- a/templates/index.html +++ b/templates/index.html @@ -7592,7 +7592,7 @@ aprsMap = L.map('aprsMap').setView([initialLat, initialLon], initialZoom); // Dark themed map tiles - L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', { + L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png?v=2', { attribution: '© OSM © CARTO', maxZoom: 19 }).addTo(aprsMap); @@ -8495,7 +8495,7 @@ attributionControl: false }); - L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', { + L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png?v=2', { attribution: '© OSM © CARTO', maxZoom: 19 }).addTo(groundTrackMap); diff --git a/templates/satellite_dashboard.html b/templates/satellite_dashboard.html index 466e2ac..df54564 100644 --- a/templates/satellite_dashboard.html +++ b/templates/satellite_dashboard.html @@ -416,7 +416,7 @@ worldCopyJump: true }); - L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png', { + L.tileLayer('https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}.png?v=2', { attribution: '© OSM © CARTO', maxZoom: 19 }).addTo(groundMap);