's'
This commit is contained in:
@@ -176,3 +176,19 @@ app/lib/
|
||||
client.ts # getMinioClient, uploadBuffer, generateObjectKey
|
||||
index.ts
|
||||
```
|
||||
|
||||
## 缓存与部署更新
|
||||
|
||||
项目已配置 `Cache-Control: no-store, no-cache`,部署后用户应能立即看到更新。若使用 **Cloudflare**,还需在控制台调整:
|
||||
|
||||
### Cloudflare 控制台设置
|
||||
|
||||
1. **Caching → Configuration**
|
||||
- **Caching Level**:选 `Standard` 或 `Bypass`(开发/频繁更新时)
|
||||
- **Browser Cache TTL**:选 `Respect Existing Headers`,以遵循源站 `Cache-Control`
|
||||
|
||||
2. **Caching → Cache Rules**(可选)
|
||||
- 为 `/*` 添加规则:`Cache eligibility` = Bypass,或 `Edge TTL` = 0
|
||||
|
||||
3. **DNS**
|
||||
- 记录 **TTL**:设为 `1`(Auto)或 `60` 秒,加快 DNS 变更生效
|
||||
|
||||
Reference in New Issue
Block a user