Instead of completely disabling the cache, can I control the cache duration for a URL in Cloudflare?

Question

Grade: Education Subject: Support
Instead of completely disabling the cache, can I control the cache duration for a URL in Cloudflare?
Asked by:
100 Viewed 100 Answers

Answer (100)

Best Answer
(380)
Yes, you can control the cache duration using Page Rules. Instead of setting 'Cache Level' to 'Bypass Cache', you can use 'Cache TTL' to specify how long Cloudflare should cache the resource. You can also use the 'Edge Cache TTL' setting, which allows you to override the cache-control headers sent by your origin server and specify a custom cache duration at the Cloudflare edge.