Cloudflare not Caching


#1

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?


#2

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

The above link describes how to override that.


#3

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


#4

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


#5

CF by default caches .css .js

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.