RoyAalekh commited on
Commit
a10a4c3
·
1 Parent(s): 6aa976f

chore(cache): auto-bump cache version before push

Browse files
Files changed (4) hide show
  1. static/index.html +2 -2
  2. static/map.html +8 -4
  3. static/sw.js +1 -1
  4. version.json +1 -1
static/index.html CHANGED
@@ -947,7 +947,7 @@
947
  // Force refresh if we detect cached version
948
  (function() {
949
  const currentVersion = '5.1.1';
950
- const timestamp = '1761513634'; // Cache-busting bump
951
  const lastVersion = sessionStorage.getItem('treetrack_version');
952
  const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
953
 
@@ -1193,7 +1193,7 @@
1193
  </div>
1194
  </div>
1195
 
1196
- <script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=1761513634"></script>
1197
 
1198
  <script>
1199
  // Idle-time prefetch of map assets to speed up first navigation
 
947
  // Force refresh if we detect cached version
948
  (function() {
949
  const currentVersion = '5.1.1';
950
+ const timestamp = '1761513732'; // Cache-busting bump
951
  const lastVersion = sessionStorage.getItem('treetrack_version');
952
  const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
953
 
 
1193
  </div>
1194
  </div>
1195
 
1196
+ <script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=1761513732"></script>
1197
 
1198
  <script>
1199
  // Idle-time prefetch of map assets to speed up first navigation
static/map.html CHANGED
@@ -968,7 +968,7 @@
968
  // Force refresh if we detect cached version
969
  (function() {
970
  const currentVersion = '5.1.1';
971
- const timestamp = '1761513634'; // Current timestamp for cache busting
972
  const lastVersion = sessionStorage.getItem('treetrack_version');
973
  const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
974
 
@@ -1048,9 +1048,13 @@ const timestamp = '1761513634'; // Current timestamp for cache busting
1048
  <li><strong>Small clusters (2-10 trees):</strong> Yellow/orange circles</li>
1049
  <li><strong>Medium clusters (10-100 trees):</strong> Orange circles</li>
1050
  <li><strong>Large clusters (100+ trees):</strong> Red circles</li>
1051
- <li><strong>Click/touch</strong> any cluster to expand into spiral view of trees</li>
1052
- <li><strong>Zoom in</strong> further to see individual tree markers</li>
1053
  </ul>
 
 
 
 
 
 
1054
  </div>
1055
 
1056
  <p>Use the map controls on the left to:</p>
@@ -1133,7 +1137,7 @@ const timestamp = '1761513634'; // Current timestamp for cache busting
1133
  <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
1134
  <!-- Leaflet MarkerCluster JS for performance and grouping -->
1135
  <script src="https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js"></script>
1136
- <script src="/static/map.js?v=5.1.1&t=1761513634"></script>
1137
  <script>
1138
  console.log('🗺️ Map script loaded successfully');
1139
  </script>
 
968
  // Force refresh if we detect cached version
969
  (function() {
970
  const currentVersion = '5.1.1';
971
+ const timestamp = '1761513732'; // Current timestamp for cache busting
972
  const lastVersion = sessionStorage.getItem('treetrack_version');
973
  const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
974
 
 
1048
  <li><strong>Small clusters (2-10 trees):</strong> Yellow/orange circles</li>
1049
  <li><strong>Medium clusters (10-100 trees):</strong> Orange circles</li>
1050
  <li><strong>Large clusters (100+ trees):</strong> Red circles</li>
 
 
1051
  </ul>
1052
+ <p style="margin: 8px 0 0 0; font-size: 0.8rem; font-weight: 600;">How to explore clusters:</p>
1053
+ <ol style="margin: 4px 0 0 0; padding-left: 16px; font-size: 0.8rem; color: #6b7280;">
1054
+ <li><strong>Zoom in</strong> to get closer to cluster areas</li>
1055
+ <li><strong>Click/touch clusters</strong> to expand into spiral view of individual trees</li>
1056
+ <li><strong>Click individual trees</strong> to view their detailed information</li>
1057
+ </ol>
1058
  </div>
1059
 
1060
  <p>Use the map controls on the left to:</p>
 
1137
  <script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
1138
  <!-- Leaflet MarkerCluster JS for performance and grouping -->
1139
  <script src="https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js"></script>
1140
+ <script src="/static/map.js?v=5.1.1&t=1761513732"></script>
1141
  <script>
1142
  console.log('🗺️ Map script loaded successfully');
1143
  </script>
static/sw.js CHANGED
@@ -1,5 +1,5 @@
1
  // TreeTrack Service Worker - PWA and Offline Support
2
- const VERSION = 1761513634; // Cache busting bump - force clients to fetch new static assets and header image change
3
  const CACHE_NAME = `treetrack-v${VERSION}`;
4
  const STATIC_CACHE = `static-v${VERSION}`;
5
  const API_CACHE = `api-v${VERSION}`;
 
1
  // TreeTrack Service Worker - PWA and Offline Support
2
+ const VERSION = 1761513732; // Cache busting bump - force clients to fetch new static assets and header image change
3
  const CACHE_NAME = `treetrack-v${VERSION}`;
4
  const STATIC_CACHE = `static-v${VERSION}`;
5
  const API_CACHE = `api-v${VERSION}`;
version.json CHANGED
@@ -1,4 +1,4 @@
1
  {
2
  "version": "5.1.1",
3
- "timestamp": 1761513634
4
  }
 
1
  {
2
  "version": "5.1.1",
3
+ "timestamp": 1761513732
4
  }