cacheflare v0.1.4
a tiny cloudflare worker that proxies and caches http(s) api responses.
powered by hono, deployed on cloudflare edge
live endpoint:
https://cacheflare.grng.workers.dev/
usage:
https://cacheflare.grng.workers.dev/https/gettimeapi.dev/v1/time
proxies to
https://gettimeapi.dev/v1/time
& caches for 5 minutes
try it out!
query params:
ttl
: cache seconds (default 300, max 86400)
respect=1
: respect origin cache-control
no-cache=1
: bypass cache
headers:
cf-cache-bypass: 1
: bypass cache
response header:
x-cacheflare: hit|miss
(shows cache status)
current time: 2025-10-14T00:18:26.100Z