Skip to content

[Cache] Clarify Always Online trigger condition — only activates on origin unreachability#31012

Merged
ack-cf merged 2 commits into
cloudflare:productionfrom
ack-cf:clarify-always-online-trigger
May 22, 2026
Merged

[Cache] Clarify Always Online trigger condition — only activates on origin unreachability#31012
ack-cf merged 2 commits into
cloudflare:productionfrom
ack-cf:clarify-always-online-trigger

Conversation

@ack-cf
Copy link
Copy Markdown
Collaborator

@ack-cf ack-cf commented May 22, 2026

Summary

Clarifies that Always Online only activates when Cloudflare cannot reach the origin server (resulting in Cloudflare-generated 520–527 status codes), not when the origin is reachable but returning 5xx errors.

Changes

src/content/docs/cache/how-to/always-online.mdx

Makes explicit in the Visitor Experience section that:

  • The 520–527 status codes are generated by Cloudflare, not the origin
  • Always Online only activates on origin unreachability, not origin errors
  • If the origin is reachable and returns 500/503 etc., Always Online will not trigger

src/content/docs/cache/troubleshooting/always-online.mdx

Adds context to the existing limitation explaining why 404/500/503 errors don't trigger Always Online — because they indicate the origin is reachable and responding.

@ack-cf ack-cf requested a review from a team as a code owner May 22, 2026 05:22
@github-actions github-actions Bot added product:cache Issues or PRs related to Cache size/xs labels May 22, 2026
When a visitor requests content for an offline website, Cloudflare returns an HTTP response status code in the range [520–527](/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-520/), depending on the issue. These status codes indicate that the origin is unreachable.
When a visitor requests content and Cloudflare is unable to reach your origin server, Cloudflare returns an HTTP response status code in the range [520–527](/support/troubleshooting/http-status-codes/cloudflare-5xx-errors/error-520/), depending on the issue. These status codes are generated by Cloudflare and indicate that the origin is unreachable. Always Online only activates when Cloudflare cannot connect to your origin — it does not activate when the origin is reachable but returning error responses.

If your origin is reachable and returns a 5xx status code (such as 500 or 503), Always Online will not trigger because the origin is online. Always Online is designed to handle origin unreachability, not origin errors.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's say "such as 520" . 500/503 is not related to AO so it's not as strong as an example. Rest looks good to you.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

@ack-cf ack-cf merged commit 2171ad6 into cloudflare:production May 22, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:cache Issues or PRs related to Cache size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants