licell 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +11 -0
  2. package/dist/licell.js +223 -219
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -385,6 +385,8 @@ licell deploy --type static --dist dist
385
385
  licell deploy --type static --dist dist --domain-suffix your-domain.xyz
386
386
  # 或
387
387
  licell deploy --type static --dist dist --domain static.your-domain.xyz
388
+ # 如需更重的缓存失效策略,也可显式指定:
389
+ licell deploy --type static --dist dist --domain static.your-domain.xyz --cdn-refresh all
388
390
  ```
389
391
 
390
392
  这条 workflow 会串起:
@@ -393,6 +395,15 @@ licell deploy --type static --dist dist --domain static.your-domain.xyz
393
395
  - CDN 接入
394
396
  - DNS CNAME 收敛
395
397
  - HTTPS 证书签发与 CDN 边缘证书配置
398
+ - CDN 缓存刷新(默认 `entrypoints`,会自动刷新 `/`、HTML、manifest 与 service worker 等入口文件)
399
+
400
+ ### CDN Refresh 说明
401
+
402
+ - 只要 static deploy 绑定了固定域名并走 CDN,Licell 默认就会执行 `--cdn-refresh entrypoints`
403
+ - `entrypoints` 适合现代前端站点:只刷新 `/`、根层 HTML、`manifest.json`、`asset-manifest.json`、`sw.js`、`service-worker.js`
404
+ - `all` 会对根目录做目录级刷新,适合你明确知道整站缓存都要立即失效的场景
405
+ - `off` 会关闭自动刷新;这通常只适合你自己在外部另有缓存治理流程时使用
406
+ - 部署完成后的结构化结果里会返回 `cdnRefreshMode` 与 `cdnRefreshTaskIds[]`,便于 Agent / CI 继续追踪
396
407
 
397
408
  ### HTTPS / ACME 说明
398
409