Cloudflare Cache Route Inventory for Logins, Forms and Checkout
How can a small business classify website routes before creating Cloudflare caching rules?
List representative website route types and record each route's purpose, cookie dependence, intended cache controller and proposed action. Public, repeatable responses can be reviewed as cache candidates; uncertain or transactional routes should not receive a forced Edge TTL. Keep the named approver, complete test journey and rollback decision in a separate change record, then confirm the result through controlled testing.
Create one row for each meaningful route type
Cloudflare says Cache Rules can adjust cache eligibility, duration and location for matching requests. Create one row for each meaningful route type, using the same columns for response purpose, cookie dependence, cache controller and proposed action. Representative route types are more useful than a raw URL export because they expose the business function of each response before a broad rule is considered.
Sources: Cache Rules · Cloudflare Cache (CDN) docs.
- Use one row per meaningful route type.
- Describe what the response does, not just its URL.
- Record the same four fields for every route type.
Mark cautious candidates for public caching
Cloudflare says caching a website homepage and product pages can eliminate costly database calls and reduce origin infrastructure load. Cloudflare also says ecommerce caching needs to account for the dynamic nature of ecommerce websites. Mark a public, repeatable response as a cache candidate for review, but do not let a label such as product page settle the decision without checking how the response behaves for visitors.
Sources: Ecommerce websites on Cloudflare: best practices | Cloudflare Blog.
- Mark candidates rather than declaring them safe.
- Check whether the response is repeatable for visitors.
- Keep dynamic ecommerce behaviour distinct from public information.
Flag origin-controlled and cookie-dependent routes
Cloudflare advises removing an Edge TTL override that forces caching when the origin must control caching. Cloudflare documents a configuration in which a cached response can have its Set-Cookie header removed before the response is stored at the edge. For login, account, form-processing, basket and checkout rows, record cookie dependence and propose no forced edge caching unless review establishes a different safe decision.
Sources: Dynamic content and login issues · Cloudflare Cache (CDN) docs.
Use an enquiry test when a form route needs end-to-end verification rather than a simple page-load check.
- Add a cookie-dependence field.
- Flag origin-controlled routes clearly.
- Treat forced Edge TTL as a review trigger for dynamic routes.
Use an approval gate before making the change
Before a live change, confirm Cloudflare’s current prerequisites in its documentation and create a change record naming the approver, expected behaviour, test journey and rollback decision. Leave uncertain routes unchanged rather than turning uncertainty into a broad exception or forced cache setting.
Use the migration guide’s go or no-go approach as a model for reviewing ownership, rollback readiness and business-service checks before a live change.
- Assign an accountable approver outside the route table.
- Write the expected business outcome and rollback decision.
- Leave uncertain routes unchanged until reviewed and tested.
Route classification worksheet
Copy these rows into a working list and replace the examples with representative route types from your website. For each route type, record its purpose, cookie dependence, cache controller and proposed action.
| Route type | Response purpose | Cookie dependence | Cache controller | Proposed action |
|---|---|---|---|---|
| Public content | Information intended to be repeatable for visitors | Known or review needed | Review Cloudflare as cache controller | Assess as a cache candidate |
| Login or account | Authentication or visitor-specific state | Likely session-dependent; review | Origin until reviewed | Do not force Edge TTL |
| Form processing | Submission and business follow-up | Review whether cookies are set or required | Origin until reviewed | Do not force Edge TTL |
| Basket or checkout | Transaction state and purchase completion | Review whether state is visitor-specific | Origin until reviewed | Do not force Edge TTL |
This worksheet records a proposed route decision, not a proven result. Keep the approver, test journey, expected outcome and rollback decision in the separate change record, and leave unknown behaviour out of forced caching until reviewed and tested.
When this is not the right approach: Do not use this worksheet as a substitute for reviewing a platform with unusual session, personalisation or transaction behaviour. It is also not the right tool for diagnosing an already broken journey; contain the suspected rule and investigate the live symptom instead.
Related guidance
What follow-up questions matter most?
- What belongs in a cache route inventory?
- Use one row for each meaningful route type. Include its response purpose, cookie dependence, intended cache controller and proposed action; keep ownership, rollback and the full test journey in the change approval record.
- Does a public product page automatically belong in cache?
- Mark it as a candidate for review, not automatically safe. Confirm that its response is public and repeatable, then test it after a controlled change.
- What if I am unsure how a route behaves?
- Leave it out of forced edge caching until it has been reviewed. This is particularly important for login, account, form-processing, basket and checkout behaviour.
What steps does this workflow follow?
How to create a Cloudflare cache route inventory
- Choose representative route types: List the main public, login, account, form, basket, checkout and personalised route types used by the website.
- Record response purpose: For each row, describe what the response does rather than relying only on its URL or page label.
- Record cookie dependence: Note whether the route sets or relies on cookies, and flag it for review where the answer is uncertain.
- Set the proposed controller: Identify whether the origin should control caching or whether the route is a public cache candidate for review.
- Define the change gate: Outside the route table, name the approver and document the test journey, expected result and rollback decision.
- Approve only reviewed routes: Leave uncertain dynamic routes unchanged and make cache changes only where the decision and verification plan are clear.