Spaces:
Runtime error
Runtime error
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
|
@@ -953,7 +953,7 @@
|
|
| 953 |
// Force refresh if we detect cached version
|
| 954 |
(function() {
|
| 955 |
const currentVersion = '5.1.1';
|
| 956 |
-
const timestamp = '
|
| 957 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 958 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 959 |
|
|
@@ -1199,7 +1199,7 @@
|
|
| 1199 |
</div>
|
| 1200 |
</div>
|
| 1201 |
|
| 1202 |
-
<script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=
|
| 1203 |
|
| 1204 |
<script>
|
| 1205 |
// Idle-time prefetch of map assets to speed up first navigation
|
|
|
|
| 953 |
// Force refresh if we detect cached version
|
| 954 |
(function() {
|
| 955 |
const currentVersion = '5.1.1';
|
| 956 |
+
const timestamp = '1761486700'; // Cache-busting bump
|
| 957 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 958 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 959 |
|
|
|
|
| 1199 |
</div>
|
| 1200 |
</div>
|
| 1201 |
|
| 1202 |
+
<script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=1761486700"></script>
|
| 1203 |
|
| 1204 |
<script>
|
| 1205 |
// Idle-time prefetch of map assets to speed up first navigation
|
static/map.html
CHANGED
|
@@ -799,7 +799,7 @@
|
|
| 799 |
// Force refresh if we detect cached version
|
| 800 |
(function() {
|
| 801 |
const currentVersion = '5.1.1';
|
| 802 |
-
const timestamp = '
|
| 803 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 804 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 805 |
|
|
@@ -925,7 +925,7 @@ const timestamp = '1761486689'; // Current timestamp for cache busting
|
|
| 925 |
|
| 926 |
<!-- Leaflet JS -->
|
| 927 |
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 928 |
-
<script src="/static/map.js?v=5.1.1&t=
|
| 929 |
|
| 930 |
"default-state": {
|
| 931 |
gradients: [
|
|
|
|
| 799 |
// Force refresh if we detect cached version
|
| 800 |
(function() {
|
| 801 |
const currentVersion = '5.1.1';
|
| 802 |
+
const timestamp = '1761486700'; // Current timestamp for cache busting
|
| 803 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
| 804 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
| 805 |
|
|
|
|
| 925 |
|
| 926 |
<!-- Leaflet JS -->
|
| 927 |
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
|
| 928 |
+
<script src="/static/map.js?v=5.1.1&t=1761486700">
|
| 929 |
|
| 930 |
"default-state": {
|
| 931 |
gradients: [
|
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 = 1761486700; // 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": 1761486700
|
| 4 |
}
|