Cache Test

Cloudflare Cache Testing

This page has configurable cache headers. Use query params to change:

How to Test

# First request — expect cf-cache-status: MISS
curl -sI https://blwltestet.tk/cache-test | grep -E "cf-cache-status|cache-control|cf-ray|age"

# Second request — expect cf-cache-status: HIT
curl -sI https://blwltestet.tk/cache-test | grep -E "cf-cache-status|cache-control|cf-ray|age"

# Purge cache via API
curl -X POST "https://api.cloudflare.com/client/v4/zones/ZONE_ID/purge_cache" \
  -H "Authorization: Bearer TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"files":["https://blwltestet.tk/cache-test"]}'
        

Origin timestamp: