Subject: Content not Being Cached

Hello,

Thank you for reaching out to us about these concerns. Based on the curl output you provided, it
appears that your site's resources are not being cached due to the Cache-Control headers set on
your origin server (Cloudflare-Nginx):

"Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0, max-age=0"

These headers instruct browsers and intermediaries (including Cloudflare) not to cache the content
(no-store, no-cache). This behavior can also be influenced by the sensitivity of your website's
content, such as for banking sites where caching sensitive information on the client side should be
avoided.

To resolve this issue and optimize caching for your site, please follow these steps:

  1. Update Cache-Control Headers: Modify the Cache-Control headers on your origin server
    (Cloudflare-Nginx) to allow caching. Consider using headers like Cache-Control: public, max-
    age=3600 to cache content for one hour, adjusting the max-age as needed.
  2. Configure Page Rules in Cloudflare:Access your Cloudflare dashboard and navigate to the
    Page Rules section. Here, you can set specific caching rules tailored to your website's
    requirements. You may want to enable a "Cache Everything" policy for appropriate content,
    ensuring sensitive data is excluded from caching.
  3. Purge Cache:After updating the headers and configuring Page Rules, purge Cloudflare's cache
    to ensure the changes take effect immediately. You can do this through the Cloudflare
    dashboard or API.
  4. Further Assistance:If you encounter any difficulties or have questions about optimizing caching
    settings or other Cloudflare services, please feel free to reach out to us. We're here to assist you
    in maximizing your site's performance and security with Cloudflare.

Best regards,
Saber Moahmed
Cloudflare Support Team