Cloudflare not Caching

For the life of me, I can’t figure out how to cache with Cloudflare.

  1. I set the caching to standard.
  2. Browser Expiration: 1 Month
  3. Page Rules, cache everything…
  4. Argo, on.

But none of my bandwith or requests are being cached…

For a bit the system was working, but then it went down to practically 0. I had changed a setting, but that was only fleeting, and changed it back, I’ll admit.

Hours would pass, and nada. No change.

Any advice?

Your origin server is telling us not to cache:
Cache-Control: max-age=0, must-revalidate, no-cache, no-store

https://support.cloudflare.com/hc/en-us/articles/115000150272-How-do-I-use-Cache-Everything-with-Cloudflare-

The above link describes how to override that.

2 Likes

I have checked. The caching is working swimmingly now. Thank You.

1 Like

Hi all,

I have a website that isn’t caching css / js etc… however, I have setup the :
antikbatik.com/.css*
Browser Cache TTL: a year, Cache Level: Cache Everything, Edge Cache TTL: a month<

for example, for you try this url https://www.antikbatik.com dans you will see that the css ressource is missed. Could you please help?

Thanks

CF by default caches .css .js
https://support.cloudflare.com/hc/en-us/articles/200172516-What-file-extensions-does-Cloudflare-cache-for-static-content-

IMPORTANT:

  1. Go to CACHING icon, select [Purge Everything] wait 30sec - 5minutes for Cloudflare to download your content.
  2. Go to-> https://cf-cache-status.net/?url=http://www.antikbatik.com/style.css ,To test if the rule works. You must See HIT. press ctrl+f5 if you see MISS. If you get no header, You probable haven’t configured CF with you host correctly.
1 Like