Plan a Cloudflare Cache Purge for Changed URLs
A release that changes a few routes usually has a small cache footprint. List the cached representations affected by the release, then verify that the purge reached those representations.
Build the URL inventory
Record the exact scheme, hostname, path and relevant query string for each changed public URL. If the deployment uses separate cache keys by headers or transformations, check the provider's single-file purge requirements for those variants. Include one untouched URL as a control.
Purge the smallest supported scope
After the change is present at the origin, use Cloudflare's documented single-file purge for the approved host and URL set. If the cache uses custom keys, include any variant information required by your plan and configuration. Keep unrelated hostnames and protected routes out of the purge list.
Verify content independently from cache status
Request the exact changed and control URLs. Confirm the changed response returns the expected version marker or content and review cache status as supporting evidence. Depending on the cache state and location, the first response may miss and a subsequent eligible request may hit. Ensure the control still returns its expected version.
Interpret a miss that does not refresh content
If cache headers change but the body is stale, inspect the origin and any additional cache layer before increasing the purge scope. Record the URL set, time, tested location and revision.
Related guides
- How to Read CF-Cache-Status During a Cache Incident
- Use Long Browser Caching for Fingerprinted Assets
Official references
Ferkesh Hosting. Last reviewed .
Obrigado pela sua opinião!