Skip to content


Folders and files

Last commit message
Last commit date

Latest commit



6 Commits

Repository files navigation

Cloudflare Worker for Google Fonts CDN Masking and Caching

This worker can be used to mask google font CDN with your own domain, so that you don't have to call or preconnect to google fonts from your html. Also, we are using worker cache to store the responses, so that we can make the calls faster.

How it works

Basically if you point your domain ie* to this worker, then you should be able to get responses just like google CDN. For example:;700&display=swap is same as;700&display=swap. Simillarly actual font file ie woff2 file) is same as


Feel free to create a PR for any improvements.