Bobcares

CloudFlare woocommerce page rules

by | Jan 23, 2023

Willing to know about cloudflare woocommerce page rules? Our CloudFlare Support team is here to lend a hand with your queries and issues.

CloudFlare woocommerce page rules

This allows for static HTML to be cached at our edge, with no need for it to be regenerated from request to request.

Before starting make sure that Cloudflare is set to respect Cache-Control headers from your origin web server; otherwise, you may find Cache-Control headers are overridden by Cloudflare with the value set in the Browser Cache TTL option.

To set the Respect Existing Headers option:

  1. Firstly, log into your Cloudflare account.
  2. Click the Caching app.
  3. Then, scroll down to Browser Cache TTL, and select the Respect Existing Headers value.

Cache Static HTML with Cloudflare Page Rules

Log in to your Cloudflare account.

2. Go to Rules > Page Rules and select Create Page Rule.

3. Set the page rule to match your WordPress installation path. If your site is at https://www.example.com, the rule would be https://www.example.com.

4. Select the appropriate settings to cache static HTML:

  • Cache Everything instructs Cloudflare to cache static HTML.
  • When the Bypass Cache on Cookie rule matches the criteria you set, Cloudflare won’t cache HTML.
  • Finally, setting Edge Cache TTL will define the maximum period of time Cloudflare should keep cached files before getting them back from the origin web server.

Even after setting a long Edge Cache TTL time, you can still manually clear the cache or use our WordPress plugin to automatically manage cache purging.

5. Click Save and Deploy to finish.

CloudFlare page rules for WooCommerce pages

9 Cloudflare Page Rules For WordPress Sites

  1. Firstly, always Use HTTPS
  2. Then, secure The WordPress Admin And Bypass Cache
  3. Don’t Cache Preview Pages
  4. Forward XMLRPC URLs
  5. Decrease Bandwidth Of WP Uploads
  6. Make Important Pages Always Online
  7. Enable Email Obfuscation On Contact Page Only
  8. eCommerce Sites And Dynamic Content Using AJAX
  9. Cache Everything

[Need assistance with a different issue? Our team is available 24/7.]

Conclusion

In conclusion, our Support Engineers discussed about cloudflare woocommerce page rules. Furthermore, we went through different causes and solutions for this specific error.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.