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:
- Firstly, log into your Cloudflare account.
- Click the Caching app.
- 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
- Firstly, always Use HTTPS
- Then, secure The WordPress Admin And Bypass Cache
- Don’t Cache Preview Pages
- Forward XMLRPC URLs
- Decrease Bandwidth Of WP Uploads
- Make Important Pages Always Online
- Enable Email Obfuscation On Contact Page Only
- eCommerce Sites And Dynamic Content Using AJAX
- 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.
0 Comments