CDN cache invalidation strategy documented; deployment process includes CDN purge or auto-purge configured
Why it matters
Deploying new code without purging the CDN cache means users may receive stale assets — old JavaScript bundles, outdated HTML, broken references to renamed files — for hours or days after a deployment. ISO 25010 reliability.maturity requires that deployments deliver what was deployed. Without a documented invalidation strategy or automated purge step in the CI/CD pipeline, cache staleness is the default outcome, not the exception, and debugging it requires correlating CDN access logs rather than a simple cache clear.
Severity rationale
Low because CDN staleness causes user-visible bugs and inconsistency after deployments, but doesn't expose data or cause security failures — the impact is reliability and UX degradation.
Remediation
Add a CDN cache purge step to your deployment workflow. For Cloudflare in GitHub Actions:
# .github/workflows/deploy.yml
- name: Deploy to production
run: npm run deploy:prod
- name: Purge Cloudflare cache
run: |
curl -s -X POST \
"https://api.cloudflare.com/client/v4/zones/${{ secrets.CF_ZONE_ID }}/purge_cache" \
-H "Authorization: Bearer ${{ secrets.CF_API_TOKEN }}" \
-H "Content-Type: application/json" \
-d '{"purge_everything": true}'
For content-hashed assets (Next.js default), purge is less critical because filenames change with each build — but HTML and API responses still need invalidation. Document the purge command and the required secrets in DEPLOYMENT.md.
DetectionPro
The detection method for this pattern is part of AuditBuffet Pro.
The full method (what to look for, pass and fail conditions, and how results get reported) ships inside the Deployment Readiness Audit. The pattern definition, severity rationale, and remediation remain openly licensed under CC-BY-4.0.
External references
- iso-25010:2011 · reliability.maturity — Maturity — CDN cache invalidation prevents stale content from degrading correctness
Taxons
History
- 2026-04-18·v1.0.0·Initial import from deployment-readiness·automated