How can I prevent Cloudflare from caching content that changes frequently?

Responsive Ad Header

Question

Grade: Education Subject: Support
How can I prevent Cloudflare from caching content that changes frequently?
Asked by:
74 Viewed 74 Answers
Responsive Ad After Question

Answer (74)

Best Answer
(292)
You can use Cloudflare's 'Cache TTL' settings to set a very short Time-to-Live (TTL) for caching. This forces Cloudflare to revalidate the content more frequently, reducing the chance of stale content being served. Alternatively, you can use a Cache-Control header with a short expiry time.