Test CDN Cache Behavior When a Response Sets a Cookie
Cookie and cache behavior depends on origin headers, CDN rules and the route. Cache status alone cannot establish whether personalized responses are isolated. Test the intended behavior on staging.
List expected route policies
Choose a static public asset, anonymous HTML and an owned staging account page using synthetic records. Record what can be shared and what should bypass shared caching. Inspect Cache-Control and Set-Cookie presence without copying cookie values.
Compare ordinary sessions
Use clean browsers for two authorized fixtures and an anonymous visitor. Open approved routes without issuing writes. Verify each account sees its own marker and that the anonymous visitor cannot read protected content. Stop and report any unexpected shared response.
Make a narrowly scoped release
Review the provider's cookie handling and affected rules. Avoid caching all HTML simply to increase a hit rate. After a permitted correction, repeat the same tests and retain the previous safe settings for rollback.
Related Ferkesh Knowledge Base guides
- How to Read CF-Cache-Status During a Cache Incident
- How to Audit Cache Isolation for WooCommerce Cart and Account Pages
Official references
Last reviewed .
Спасибі за відгук!