4 ms·
IIRC CloudFlare doesn't cache HTML by default, so if your HTML is dynamically generated (and not, at the very least, cached on your own server/application/WordP
by handrous 5y ago
IIRC CloudFlare doesn't cache HTML by default, so if your HTML is dynamically generated (and not, at the very least, cached on your own server/application/WordPress) and you don't enable HTML caching on CF, you can still easily run into trouble.
I'm pretty sure cf-cache-status is added by CF—that's not the site saying not to cache it, it's CF reporting that it's not cached (which, again, I think is the default, not something the site owner deliberately turned off).
- PaywallBuster 5y agoright so Need to use a "Page Rule" telling CF to cache everything, and provide the required Cache-Control header values from app side. It's not an option in the caching settings (or need a enterprise plan?)
- handrous 5y agoIt's a page rule, available at every plan level (I just checked the docs). Might be a problem if you've already used up your quota of page rules at a given level, but otherwise, no big deal. Enterprise is largely about very high levels of bandwidth use, serving non-Webpage traffic, and all kinds of advanced networking features. It's also a hell of a jump in price from the $200/m top-tier "self-serve" plan (which is also the only self-serve plan with any SLA whatsoever, so, the only one any business beyond the "just testing the waters" phase should be on)
- PaywallBuster 5y agoI mean the Page Rules can be used by anyone (according to their quota usage) But the Cache Settings page, it doesn't have the "Cache Everything" option, or it's reserved to Enterprise plan.
- handrous 5y agoRight, the page rule is the setting, and AFAIK that's the same even on Enterprise. You're right that there's no check-box/toggle-slider to make it happen. It's covered in what I'd consider to be one of a handful of docs pages that're must-read for most any level of usage of the service: https://support.cloudflare.com/hc/en-us/articles/200172516-Understanding-Cloudflare-s-CDN https://support.cloudflare.com/hc/en-us/articles/200172516-U... (it also links to a page that describes exactly how to create a "cache everything" page rule)
- tyingq 5y agoThey appear to be not caching it on purpose, because of some non-obvious stuff like the dynamic "Site Status" thing in the footer. If it were me, though, I'd figure out how to cache stuff like the blog.
- handrous 5y agoOught to move any small, self-contained dynamic sections to something loaded by JS, with failure allowed without (user-facing) complaint. Or kick it old-school and use an iframe. Then again, most orgs have a ton of stuff they ought to do and haven't gotten around to. You just hope it doesn't bite you quite so publicly and ironically as this.