An open API service indexing awesome lists of open source software.

https://github.com/milgradesec/doh-cache-worker

A Cloudflare Worker to make DNS over HTTPS requests cacheable at edge.
https://github.com/milgradesec/doh-cache-worker

cloudflare-workers dns-over-https serverless

Last synced: 2 months ago
JSON representation

A Cloudflare Worker to make DNS over HTTPS requests cacheable at edge.

Awesome Lists containing this project

README

          

# ⚡ doh-cache ⚡

👷 `doh-cache` is a Cloudflare Worker to make DNS over HTTPS requests cacheable at edge.

🚀 Running in production at ****

## How it Works

`doh-cache` accepts DNS-over-HTTPS (DoH) **POST** request, rewrites them as equivalent **GET** requests, and then uses Cloudflare’s **Cache API** to store the results at the edge.

On a cache hit, responses are served from the nearest Cloudflare data center, dramatically reducing latency. On a miss, the worker fetches from the upstream DoH resolver, caches the response, and returns it to the client.

## License

MIT License