Always Online not working (shows 522)


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:

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.

closed #5

This topic was automatically closed after 14 days. New replies are no longer allowed.