diff --git a/backend/static/index.html b/backend/static/index.html
index 559a4e0..e52f1aa 100644
--- a/backend/static/index.html
+++ b/backend/static/index.html
@@ -566,7 +566,7 @@
-
+
diff --git a/backend/static/js/app.js b/backend/static/js/app.js
index 792086d..1b287ad 100644
--- a/backend/static/js/app.js
+++ b/backend/static/js/app.js
@@ -3,7 +3,7 @@
Router, State-Management, Navigation, Initialisierung.
============================================================ */
-const APP_VER = '639'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
+const APP_VER = '640'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen
const APP_VERSION = '1.2.1'; // ← semantische Version, wird bei make release gesetzt
const IS_STAGING = location.hostname === 'staging.banyaro.app';
diff --git a/backend/static/js/worlds.js b/backend/static/js/worlds.js
index 37c9ba7..043d2bd 100644
--- a/backend/static/js/worlds.js
+++ b/backend/static/js/worlds.js
@@ -761,7 +761,11 @@ window.Worlds = (() => {
return;
}
- const dog = dogs[0];
+ // Hunde global cachen für schnelles Cycling
+ _dogs = dogs;
+ if (_dogIdx >= _dogs.length) _dogIdx = 0;
+ const dog = _dogs[_dogIdx];
+
const [streakRes, diaryRes] = await Promise.allSettled([
_cachedGet(`streak_${dog.id}`, `/streak/${dog.id}`),
_cachedGet(`diary_${dog.id}`, `/dogs/${dog.id}/diary?limit=1`),
@@ -770,11 +774,6 @@ window.Worlds = (() => {
const diaryData = diaryRes.value?.data ?? diaryRes.value;
const lastEntry = diaryData?.entries?.[0] || diaryData?.[0] || null;
- // Hunde global cachen für schnelles Cycling
- _dogs = dogs;
- if (_dogIdx >= _dogs.length) _dogIdx = 0;
- const dog = _dogs[_dogIdx];
-
const ageStr = dog.alter_jahre ? _fmtAlter(dog.alter_jahre) : '';
const stats = [dog.rasse, ageStr, dog.gewicht_kg ? dog.gewicht_kg + ' kg' : null].filter(Boolean).join(' · ');
const otherDogs = _dogs.filter((_, i) => i !== _dogIdx);
diff --git a/backend/static/sw.js b/backend/static/sw.js
index 6ff893c..c79f28f 100644
--- a/backend/static/sw.js
+++ b/backend/static/sw.js
@@ -3,7 +3,7 @@
Offline-Cache + Push Notifications + Tile-Cache
============================================================ */
-const CACHE_VERSION = 'by-v639';
+const CACHE_VERSION = 'by-v640';
const CACHE_STATIC = `${CACHE_VERSION}-static`;
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache