Hi
I’ve enabled Cloudflare’s always online feature. My website has been live for more than a month by now. Today I turned off my server and suddenly it shows 522 on visiting my URL.
Shouldn’t Cloudflare have cached the home page at least ?
See this expansive article for common issues:
https://support.cloudflare.com/hc/en-us/articles/202238800-Why-is-Always-Online-not-working-
Chances are the page has cache headers indicating it’s not a page that should be cached.
It was the index page. and no, it didn’t have cache control header.
It didn’t have any cache-control header? If this is the case, CF (and other caches) will assume there is dynamic content on the page and likely won’t display it. If your index is always static and doesn’t have any dynamic content (toolbars like wordpress’s toolbar, admin-only information, etc) then the cache-control header should be public.
This topic was automatically closed after 14 days. New replies are no longer allowed.