feat(pwa): 优化PWA配置和缓存策略

- 更新HTML文件中的PWA相关meta标签和图标路径
- 调整Service Worker缓存资源路径为相对路径
- 增强Service Worker fetch事件处理逻辑
- 升级缓存版本号以确保更新生效
- 优化Google Analytics脚本加载方式
- 整理HTML文件结构,提升可读性
This commit is contained in:
hehh
2025-11-25 18:36:52 +08:00
parent f1d4207e35
commit af27d9575b
3 changed files with 93 additions and 79 deletions

View File

@@ -450,10 +450,10 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="Honesty">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<link rel="apple-touch-icon" href="./images/avatar.jpeg">
<!-- Windows PWA支持 -->
<meta name="msapplication-TileImage" content="/images/avatar.jpeg">
<meta name="msapplication-TileImage" content="./images/avatar.jpeg">
<meta name="msapplication-TileColor" content="#6c5ce7">
<meta name="msapplication-tap-highlight" content="no">