Skip to content

Commit ff9e457

Browse files
bingggclaude
andcommitted
🔧 Remove local server integration for GitHub Pages deployment
- Remove server-integration.js to eliminate localhost API requests - Disable v2 server features that require local backend - Add cache-busting documentation for GitHub Pages - Prepare for pure static deployment without server dependencies 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e76efcb commit ff9e457

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

cache-busting.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# GitHub Pages 缓存解决方案
2+
3+
## 问题描述
4+
GitHub Pages 使用 CDN 缓存,导致更新后页面不会立即刷新。
5+
6+
## 解决方法
7+
8+
### 1. 用户端强制刷新
9+
- **硬刷新**: `Ctrl+F5` (Windows) 或 `Cmd+Shift+R` (Mac)
10+
- **开发者工具**: F12 → 网络标签 → 勾选"禁用缓存"
11+
- **隐身模式**: 使用浏览器隐身/无痕模式访问
12+
13+
### 2. 查看缓存状态
14+
访问这些URL查看文件是否已更新:
15+
- https://binggg.github.io/Claude-Code-Web-GUI/assets/css/styles.css
16+
- https://binggg.github.io/Claude-Code-Web-GUI/assets/js/app.js
17+
- https://binggg.github.io/Claude-Code-Web-GUI/index.html
18+
19+
### 3. 缓存失效时间
20+
- HTML文件:约10-15分钟
21+
- CSS/JS文件:约1-2小时
22+
- 完全更新:最多24小时
23+
24+
### 4. 开发建议
25+
对于频繁更新的项目,可以考虑:
26+
- 使用版本号参数:`app.js?v=1.0.1`
27+
- 使用哈希值:`app-abc123.js`
28+
- 设置自定义域名以更好控制缓存策略
29+
30+
## 当前部署状态
31+
最新提交: `e76efcb`
32+
包含改进: FAB按钮动画、JSONL分享格式、首页光效
33+
34+
等待缓存刷新时间: 10-60分钟

index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,5 @@ <h3>欢迎使用 Claude Code Web GUI</h3>
120120
<!-- Load external scripts -->
121121
<script src="assets/js/i18n.js"></script>
122122
<script src="assets/js/app.js"></script>
123-
<script src="assets/js/server-integration.js"></script>
124123
</body>
125124
</html>

0 commit comments

Comments
 (0)