Spaces:
Runtime error
Runtime error
chore(cache): auto-bump cache version before push
Browse files- static/contributors.html +3 -3
- static/index.html +3 -3
- static/map.html +2 -2
- static/sw.js +1 -1
- version.json +1 -1
static/contributors.html
CHANGED
|
@@ -354,9 +354,9 @@
|
|
| 354 |
<div class="contributors-content">
|
| 355 |
<div class="project-description">
|
| 356 |
TreeTrack is a collaborative forest research platform dedicated to mapping and
|
| 357 |
-
conserving the biodiversity of Tezpur, Assam. This
|
| 358 |
-
|
| 359 |
-
|
| 360 |
</div>
|
| 361 |
|
| 362 |
<div class="team-section">
|
|
|
|
| 354 |
<div class="contributors-content">
|
| 355 |
<div class="project-description">
|
| 356 |
TreeTrack is a collaborative forest research platform dedicated to mapping and
|
| 357 |
+
conserving the biodiversity of Tezpur, Assam. This project combines
|
| 358 |
+
web technology with traditional field research to create a
|
| 359 |
+
digital repository of local tree species and their ecological significance.
|
| 360 |
</div>
|
| 361 |
|
| 362 |
<div class="team-section">
|
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 = '
|
| 951 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 952 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 953 |
|
|
@@ -984,7 +984,7 @@
|
|
| 984 |
<div class="tt-user-role" id="userRole">User</div>
|
| 985 |
</div>
|
| 986 |
</div>
|
| 987 |
-
<a href="/welcome" class="tt-btn tt-btn-secondary" id="welcomeBtn" style="display: none;">Back to
|
| 988 |
<a href="/static/map.html" class="tt-btn tt-btn-secondary" id="viewMapBtn">View on Map</a>
|
| 989 |
<button id="logoutBtn" class="tt-btn tt-btn-secondary">Logout</button>
|
| 990 |
</div>
|
|
@@ -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=
|
| 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 = '1761514190'; // Cache-busting bump
|
| 951 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 952 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 953 |
|
|
|
|
| 984 |
<div class="tt-user-role" id="userRole">User</div>
|
| 985 |
</div>
|
| 986 |
</div>
|
| 987 |
+
<a href="/welcome" class="tt-btn tt-btn-secondary" id="welcomeBtn" style="display: none;">Back to Homepage</a>
|
| 988 |
<a href="/static/map.html" class="tt-btn tt-btn-secondary" id="viewMapBtn">View on Map</a>
|
| 989 |
<button id="logoutBtn" class="tt-btn tt-btn-secondary">Logout</button>
|
| 990 |
</div>
|
|
|
|
| 1193 |
</div>
|
| 1194 |
</div>
|
| 1195 |
|
| 1196 |
+
<script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=1761514190"></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 = '
|
| 972 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 973 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 974 |
|
|
@@ -1137,7 +1137,7 @@ const timestamp = '1761513732'; // Current timestamp for cache busting
|
|
| 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=
|
| 1141 |
<script>
|
| 1142 |
console.log('🗺️ Map script loaded successfully');
|
| 1143 |
</script>
|
|
|
|
| 968 |
// Force refresh if we detect cached version
|
| 969 |
(function() {
|
| 970 |
const currentVersion = '5.1.1';
|
| 971 |
+
const timestamp = '1761514190'; // Current timestamp for cache busting
|
| 972 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 973 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 974 |
|
|
|
|
| 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=1761514190"></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 =
|
| 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 = 1761514190; // 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":
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"version": "5.1.1",
|
| 3 |
+
"timestamp": 1761514190
|
| 4 |
}
|