How to check purged Cache API call?

Hello. I want to purge cache by your API, so how to check if cache was purged besides API response? Is there any header in image call response if image hasn’t been in cache yet?


You can check the cf-cache-status header. It should have value MISS or EXPIRED for a file that is cacheable and has just been purged. If the file is heavily requested, a new cache could be created by a request immediately after the purge, in which case you’ll see a HIT. In that case, you can also check the Age header, which returns as value the number of seconds the file has been in cache.

1 Like