Spaces:
Sleeping
Sleeping
fix: restore missing <style> tag in index.html to prevent raw CSS rendering; bump cache-busting timestamp
Browse files- static/index.html +4 -3
- static/map.html +2 -2
- static/sw.js +1 -1
- version.json +1 -1
static/index.html
CHANGED
@@ -13,7 +13,8 @@
|
|
13 |
<link rel="icon" type="image/png" href="/static/image/icons8-tree-96.png">
|
14 |
<link rel="apple-touch-icon" href="/static/image/icons8-tree-96.png">
|
15 |
<link rel="stylesheet" href="/static/css/design-system.css">
|
16 |
-
|
|
|
17 |
:root {
|
18 |
/* Colors */
|
19 |
--primary-50: #eff6ff;
|
@@ -906,7 +907,7 @@
|
|
906 |
// Force refresh if we detect cached version
|
907 |
(function() {
|
908 |
const currentVersion = '5.1.1';
|
909 |
-
const timestamp = '
|
910 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
911 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
912 |
|
@@ -1151,7 +1152,7 @@
|
|
1151 |
</div>
|
1152 |
</div>
|
1153 |
|
1154 |
-
<script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=
|
1155 |
|
1156 |
<script>
|
1157 |
// Idle-time prefetch of map assets to speed up first navigation
|
|
|
13 |
<link rel="icon" type="image/png" href="/static/image/icons8-tree-96.png">
|
14 |
<link rel="apple-touch-icon" href="/static/image/icons8-tree-96.png">
|
15 |
<link rel="stylesheet" href="/static/css/design-system.css">
|
16 |
+
|
17 |
+
<style>
|
18 |
:root {
|
19 |
/* Colors */
|
20 |
--primary-50: #eff6ff;
|
|
|
907 |
// Force refresh if we detect cached version
|
908 |
(function() {
|
909 |
const currentVersion = '5.1.1';
|
910 |
+
const timestamp = '1755116236'; // Cache-busting bump
|
911 |
const lastVersion = sessionStorage.getItem('treetrack_version');
|
912 |
const lastTimestamp = sessionStorage.getItem('treetrack_timestamp');
|
913 |
|
|
|
1152 |
</div>
|
1153 |
</div>
|
1154 |
|
1155 |
+
<script type="module" src="/static/js/tree-track-app.js?v=5.1.1&t=1755116236"></script>
|
1156 |
|
1157 |
<script>
|
1158 |
// 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 = '1755115883'; // Current timestamp for cache busting
|
|
925 |
|
926 |
<!-- Leaflet JS -->
|
927 |
<script src="https://unpkg.com/[email protected]/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 = '1755116236'; // 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/[email protected]/dist/leaflet.js"></script>
|
928 |
+
<script src="/static/map.js?v=5.1.1&t=1755116236">
|
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 = 1755116236; // 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": 1755116236
|
4 |
}
|