coa: the app update feed (/dl/<slug>/current) is never cached; status.json answers cross-origin #23

Open
ben wants to merge 0 commits from coa-update-feed into main
Owner

The Caddy template for coa now marks /dl/<slug>/current/* as Cache-Control: no-cache and keeps the year-long immutable header only for versioned v<build>/ paths. /c/<slug>/status.json now sends Access-Control-Allow-Origin: * and no-cache. The current symlink moves to each new build, so the electron-updater feed must never be cached; the Coa app's update notice reads status.json cross-origin.

To test: bash roles/coa/tests/coa-caddy-test.sh (needs docker). It renders the template, serves a fixture tree with caddy:2 and checks six header/status assertions.

Deploy with the mds playbook -t coa on matou, together with the coa server change on session/app-updates-spec (Matou/coa). Spec: Matou/coa docs/superpowers/specs/2026-09-30-coa-app-updates-design.md, builds coa #140.

🤖 Generated with Claude Code

The Caddy template for coa now marks `/dl/<slug>/current/*` as `Cache-Control: no-cache` and keeps the year-long `immutable` header only for versioned `v<build>/` paths. `/c/<slug>/status.json` now sends `Access-Control-Allow-Origin: *` and `no-cache`. The `current` symlink moves to each new build, so the electron-updater feed must never be cached; the Coa app's update notice reads `status.json` cross-origin. To test: `bash roles/coa/tests/coa-caddy-test.sh` (needs docker). It renders the template, serves a fixture tree with `caddy:2` and checks six header/status assertions. Deploy with the mds playbook `-t coa` on `matou`, together with the coa server change on `session/app-updates-spec` (Matou/coa). Spec: Matou/coa `docs/superpowers/specs/2026-09-30-coa-app-updates-design.md`, builds coa #140. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin coa-update-feed:coa-update-feed
git switch coa-update-feed

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff coa-update-feed
git switch coa-update-feed
git rebase main
git switch main
git merge --ff-only coa-update-feed
git switch coa-update-feed
git rebase main
git switch main
git merge --no-ff coa-update-feed
git switch main
git merge --squash coa-update-feed
git switch main
git merge --ff-only coa-update-feed
git switch main
git merge coa-update-feed
git push origin main
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/matou-distributed-servers!23
No description provided.