RoyAalekh commited on
Commit
e1772d6
·
1 Parent(s): c296d70

NUCLEAR CACHE BUSTING - Add highly visible debug indicators

Browse files

- Add RED DEBUG BORDER and fire emojis to header
- Change title to TreeTrack Map V4.0 with timestamp
- Add !important flags to force CSS override
- Upgrade to v4.0 with enhanced version detection
- Add console logging for cache debugging
- If you still see green, there's a deeper infrastructure issue

Files changed (1) hide show
  1. static/map.html +19 -9
static/map.html CHANGED
@@ -34,13 +34,14 @@
34
 
35
  /* Header */
36
  .header {
37
- background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
38
  padding: 1rem 1.5rem;
39
  display: flex;
40
  justify-content: space-between;
41
  align-items: center;
42
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
43
  z-index: 1000;
 
44
  }
45
 
46
  .logo {
@@ -434,15 +435,24 @@
434
  <script>
435
  // Force refresh if we detect cached version
436
  (function() {
437
- const currentVersion = '3.0';
438
  const lastVersion = sessionStorage.getItem('treetrack_version');
439
- if (!lastVersion || lastVersion !== currentVersion) {
 
 
 
440
  sessionStorage.setItem('treetrack_version', currentVersion);
441
- if (lastVersion && lastVersion !== currentVersion) {
442
- location.reload(true);
443
- return;
444
- }
445
  }
 
 
 
 
 
 
 
 
446
  })();
447
  </script>
448
  </head>
@@ -451,7 +461,7 @@
451
  <!-- Header -->
452
  <div class="header">
453
  <div class="logo">
454
- TreeTrack Map
455
  </div>
456
  <div class="header-actions">
457
  <div class="tree-counter">
@@ -512,6 +522,6 @@
512
 
513
  <!-- Leaflet JS -->
514
  <script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
515
- <script src="/static/map.js?v=3.0&t=1691506800"></script>
516
  </body>
517
  </html>
 
34
 
35
  /* Header */
36
  .header {
37
+ background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
38
  padding: 1rem 1.5rem;
39
  display: flex;
40
  justify-content: space-between;
41
  align-items: center;
42
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
43
  z-index: 1000;
44
+ border-bottom: 5px solid #ff0000 !important; /* DEBUG: Red border to confirm new CSS */
45
  }
46
 
47
  .logo {
 
435
  <script>
436
  // Force refresh if we detect cached version
437
  (function() {
438
+ const currentVersion = '4.0';
439
  const lastVersion = sessionStorage.getItem('treetrack_version');
440
+
441
+ // Always reload on version mismatch
442
+ if (lastVersion && lastVersion !== currentVersion) {
443
+ console.log('Version changed from', lastVersion, 'to', currentVersion, '- forcing reload');
444
  sessionStorage.setItem('treetrack_version', currentVersion);
445
+ location.reload(true);
446
+ return;
 
 
447
  }
448
+
449
+ // Set version if not set
450
+ if (!lastVersion) {
451
+ sessionStorage.setItem('treetrack_version', currentVersion);
452
+ }
453
+
454
+ // Add debug info to page title
455
+ document.title = 'TreeTrack Map V4.0 - ' + new Date().toLocaleTimeString();
456
  })();
457
  </script>
458
  </head>
 
461
  <!-- Header -->
462
  <div class="header">
463
  <div class="logo">
464
+ 🔥 TreeTrack Map V4.0 🔥
465
  </div>
466
  <div class="header-actions">
467
  <div class="tree-counter">
 
522
 
523
  <!-- Leaflet JS -->
524
  <script src="https://unpkg.com/[email protected]/dist/leaflet.js"></script>
525
+ <script src="/static/map.js?v=4.0&t=1691507200"></script>
526
  </body>
527
  </html>