Commit e187d66
fix(update): bypass GitHub raw CDN cache for self-update
The `crab update` command was reporting "Already up to date" even after
a new version was merged, because raw.githubusercontent.com serves
cached content (max-age=300). Add cache-busting via Cache-Control header
and timestamp query param. Also validate the downloaded file contains a
version string before replacing the binary.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 5496807 commit e187d66
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9308 | 9308 | | |
9309 | 9309 | | |
9310 | 9310 | | |
9311 | | - | |
9312 | | - | |
| 9311 | + | |
| 9312 | + | |
| 9313 | + | |
9313 | 9314 | | |
9314 | 9315 | | |
| 9316 | + | |
| 9317 | + | |
| 9318 | + | |
| 9319 | + | |
| 9320 | + | |
| 9321 | + | |
9315 | 9322 | | |
9316 | 9323 | | |
9317 | 9324 | | |
| |||
0 commit comments