Karte: Markerdaten immer beim Server nachfragen, damit neue Daten (z. B. Pet-Namen) ohne Neuladen-Trick ankommen

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Maaxxs 2026-10-13 18:09:57 +02:00
parent 50f6171452
commit ba48b8b12e

View file

@ -16,7 +16,8 @@ class MarkerService {
}
try {
const response = await fetch(`${CONFIG.MARKERS_DIR}/${slug}_markers.json`);
// no-cache: beim Server nachfragen (ETag) - sonst bleibt nach einem Daten-Upload die alte Datei im Browser
const response = await fetch(`${CONFIG.MARKERS_DIR}/${slug}_markers.json`, { cache: 'no-cache' });
if (!response.ok) throw new Error('Marker file not found');
const data = await response.json();