By creating "Page Rule" you can control the performance behavior for pages of your website. The rule is applied based on the URL pattern you define for your rule.


Create a new rule


You can navigate to Settings -> Page Rules -> Add new rule.



URL Pattern

A URL pattern (for example, wp-content/*) specifies which requests you want this page rule to apply to. When Rabbit Loader receives an end-user request, the requested URL is compared with URL patterns in the order in which page rules are listed. The first match determines which rule and optimization are applied to that request.


You can use the following wildcard characters in your path pattern:

  • ? matches exactly 1 character.
  • * matches 0 or more characters.


Content Type

It can be one of these-


  1. Static: The content served is the same for everyone. It is not based on cookies or sessions. In this case, Rabbit Loader allows you to optimize and cache the content at CDN to boost the speed. Blog articles or the home page are the perfect examples. This can give you the best speed.

  2. Semi-Dynamic: The content is different for users based on their session or cookies. For example, a product page on your e-commerce site (or WooCommerce or a similar plugin) is almost the same for everyone but shows cart item count/value on the same page based on the user session. In this case, Rabbit Loader allows you to optimize and cache the content (per session) at CDN to boost the speed. If the cart is updated from ajax, you may choose to keep the products pages under the "Static" category and the ajax path under the "Dynamic" category for best performance.

  3. Full-Dynamic: Rabbit loader will not do any optimizations or cache the content. Admin panels are the best example for this category.

Example

For a typical WordPress website, this is how the Page Rules should be arranged. This explains how rules for the admin panel, assets folder, and other pages should be defined.