Anyone can join our Discord free of charge.

Cloudflare “Cache Everything” Rule For WordPress Websites

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #28194
    Jerry
    Guest

    Cloudflare has been changing their features so often the past few years, but the dust has finally settled on their new Cache Rules system which is incredibly powerful even on the free plan.

    Check out this rule that works great with your SlickStack server:

    https://gist.github.com/jessuppi/4a8334d777621867f08c24f77c0857fc

    #28195
    Terry
    Guest

    The key thing is choosing “Edit expression” instead of using their rule builder wizard.

    #28196
    Beverly
    Guest

    What about Page Rules, will it conflict with them?

    #28197
    Grace
    Guest

    https://developers.cloudflare.com/cache/how-to/cache-rules/order/

    If you have Page Rules implemented for caching on the same path, Cache Rules will take precedence by design.

    #28198
    Kimberly
    Guest

    How about WooCommerce

    #28208
    Roy
    Guest

    How about WooCommerce

    Woo rule will be added later, but that rule linked above is for non-Woo sites only.

    Here’s another assets-only rule I’ve just added:

    https://gist.github.com/jessuppi/a311546d5334254bc50245b12d1b90c3

    Note that this assets caching rule can and SHOULD be combined with the cache everything rule, be sure the cache everything rule loads first in the Cache Rules order though.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Cloudflare “Cache Everything” Rule For WordPress Websites


Thanks to our generous sponsors for their support!