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:
parent
50f6171452
commit
ba48b8b12e
1 changed files with 2 additions and 1 deletions
|
|
@ -16,7 +16,8 @@ class MarkerService {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
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');
|
if (!response.ok) throw new Error('Marker file not found');
|
||||||
|
|
||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue