2 Commits
Author SHA1 Message Date
Artur Moreira 95dbcbd9af fix(deploy): correct cf-cache-rules-apply.sh for CF Free plan (BIT-21922)
Tests / bridge tests (push) Successful in 16s
Tests / writer-pipeline tests (push) Successful in 19s
Tests / frontend lib tests (push) Successful in 16s
Five bugs found and fixed during live application to andebol.net and
newsproject.bitreport.pt:

- Endpoint was /entrypoints (plural); CF API requires /entrypoint (singular)
- origin_cache_control alone does not cache HTML on CF Free; added
  edge_ttl: {mode: override_origin, default: 60} which is required
- starts_with operator not supported on CF Free plan; replaced with contains
- newsproject.bitreport.pt has no own CF zone; zone lookup must use bitreport.pt
- Verification used curl -I (HEAD); rule expression matches GET only, so
  verification must use GET requests (-D - -o /dev/null)

Paperclip-Issue: BIT-21922
2026-05-12 22:37:55 +00:00
Artur Moreira 938a59dc3d feat(deploy): add cf-cache-rules-apply.sh for BIT-21912 / BIT-21847
Tests / writer-pipeline tests (push) Successful in 15s
Tests / bridge tests (push) Successful in 14s
Tests / frontend lib tests (push) Successful in 14s
Tests / writer-pipeline tests (pull_request) Successful in 11s
Tests / bridge tests (pull_request) Successful in 12s
Tests / frontend lib tests (pull_request) Successful in 13s
Cloudflare HTML Cache Rule apply + verify script for andebol.net and
newsproject.bitreport.pt. Needs CF_API_TOKEN (Cache Rules write); auto-
discovers zone IDs, upserts the rule from deployment.md runbook expression,
and runs double-curl verification. Ready to run once token is injected.

Paperclip-Issue: BIT-21912
2026-05-12 11:22:15 +00:00