Hi everyone,
I’ve been doing deep testing with CS-Cart (v4.18.x) to improve performance using Cloudflare full page caching, but I’ve hit the usual issue — the session cookie (sid_customer_*) is created even on the first anonymous GET request, which completely prevents HTML caching at the CDN level.
I want to cache public (non-personalized) storefront pages — category pages, product pages, home page — for guests only.
Session and cookies should start only when something personal happens: add to cart, login, checkout, etc.
Has anyone managed to:
- Stop CS-Cart from issuing the
sid_customer_*cookie** until a real session is needed (cart, checkout, login)? - Or successfully cache full HTML pages via Cloudflare (either with bypass rules, custom headers, or modified session logic)?
Any insight or working approach (addon hooks, PHP conditions, Cloudflare Page Rules, Workers, etc.) would be greatly appreciated.
My aim is to make guest storefront pages 100% static while keeping personalized features working normally.
Thanks in advance for any technical ideas or experience you can share!