The standard caching switch caches files, rather than HTML pages. Public pages need a separate Кэшировать (Cache) rule. Do not apply it to personal responses, shopping carts, or checkout.
You need caching, Правила (Rules), spare capacity, and Кэшировать and Не кэшировать (Do not cache). Enable caching first. Replace example.com with your domain. Here, /news/ contains identical public content for every visitor.
Create exclusions first
- Open WebShield → example.com → Правила → Добавить правило (Rules → Add rule).
- Create
Do not cache personal areaswith Не кэшировать. - Select Адрес → Начинается с (Path starts with). Use + Несколько значений (Multiple values) to enter
/login,/cart,/checkout, and/personal, one per line. Replace them with your CMS's actual login, cart, checkout, and account paths. These prefixes cover both bare paths and subpaths. - Save. Keep this rule above a broader caching rule; check rule order.
Cache the public section
Create another rule with Кэшировать. Set Срок хранения в кэше → 10 минут (Cache duration → 10 minutes). In one group, add Адрес → Начинается с → /news/ and Метод → В списке → GET (Method in list). Save and allow synchronization. If /news without its trailing slash also needs caching, add a separate OR group with the same method.
Request one page twice with browser caching disabled and compare requests reaching your origin. Then test login, cart, and account pages in separate sessions. If /news/ changes by user or cookie, exclude those responses. Do not assume every CMS's session cookies are recognized automatically.
Updating content on the origin does not immediately replace a cached page. Use cache purging when publishing changes. If a personal response enters the shared cache, disable the caching rule and purge the affected URLs.