Always Online not working (shows 522)

#1

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 ?

#2

See this expansive article for common issues:

Chances are the page has cache headers indicating it’s not a page that should be cached.

#3

It was the index page. and no, it didn’t have cache control header.

#4

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.