Spaces:
Sleeping
Sleeping
chore(cache): auto-bump cache version before push
Browse files- static/index.html +2 -2
- static/map.html +2 -2
- static/sw.js +1 -1
- 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 = '
|
| 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=
|
| 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 = '1761511317'; // 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=1761511317"></script>
|
| 1197 |
|
| 1198 |
<script>
|
| 1199 |
// Idle-time prefetch of map assets to speed up first navigation
|
static/map.html
CHANGED
|
@@ -960,7 +960,7 @@
|
|
| 960 |
// Force refresh if we detect cached version
|
| 961 |
(function() {
|
| 962 |
const currentVersion = '5.1.1';
|
| 963 |
-
const timestamp = '
|
| 964 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 965 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 966 |
|
|
@@ -1113,7 +1113,7 @@ const timestamp = '1761511292'; // Current timestamp for cache busting
|
|
| 1113 |
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 1114 |
<!-- Leaflet MarkerCluster JS for performance and grouping -->
|
| 1115 |
<script src="https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js"></script>
|
| 1116 |
-
<script src="/static/map.js?v=5.1.1&t=
|
| 1117 |
<script>
|
| 1118 |
console.log('🗺️ Map script loaded successfully');
|
| 1119 |
</script>
|
|
|
|
| 960 |
// Force refresh if we detect cached version
|
| 961 |
(function() {
|
| 962 |
const currentVersion = '5.1.1';
|
| 963 |
+
const timestamp = '1761511317'; // Current timestamp for cache busting
|
| 964 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 965 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 966 |
|
|
|
|
| 1113 |
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 1114 |
<!-- Leaflet MarkerCluster JS for performance and grouping -->
|
| 1115 |
<script src="https://unpkg.com/leaflet.markercluster@1.4.1/dist/leaflet.markercluster.js"></script>
|
| 1116 |
+
<script src="/static/map.js?v=5.1.1&t=1761511317"></script>
|
| 1117 |
<script>
|
| 1118 |
console.log('🗺️ Map script loaded successfully');
|
| 1119 |
</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 = 1761511317; // 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": 1761511317
|
| 4 |
}
|