Loading...

Knowledge Base
Categories:

Use CloudFlare Page Caching

Share

When using CloudFlare, you may encounter situations which require you to make adjustments to the default settings in order to optimize your CloudFlare service. For instance...

  • If you have an image-heavy page with PHP script, the static images will not be cached by CloudFlare as PHP is considered dynamic content.

  • If a script is connecting to an external URL for images without the proper configuration, an influx of bots from CloudFlare, indexing the images, might be misinterpreted as being an attack.

Use PageRules

To solve these kinds of problems, you can use PageRules. This feature allows you to change CloudFlare behavior, including cache policy, performance and security for specific URLs. To get to PageRules:

  1. Navigate to 'https://www.cloudflare.com/page-rules?z=YOURDOMAIN.COM' (replace 'YOURDOMAIN.COM' with your actual domain) in your browser

  2. Alternatively, from your CloudFlare account, you can go to Settings then Page Rules

From here, you can access available PageRules options and apply rules that fit the needs of your website. For more information on how to use PageRules in CloudFlare check out the PageRules tutorial.

Did you find this article helpful?

 
* Your feedback is too short

Loading...