Cache on the edge with Cloudflare Workers
I recently found a nice project which offers iframe line to display stars of any github repo. I found it could be useful on my another building website which aims to track the trending repos on github. So I tried to put it on and it worked well…at first. How when I put several repos on one page the tool stopped working and don’t show the star number.
I checked its source code https://github.com/mdo/github-buttons and found it is just a simple proxy to github api which certainly has a rate limit. Before I gave up and turned to other solutions like building a backend service to fetch the data and caching, then I remembered my old friend Cloudflare. Can I do something on the edge with the help of cloudflare workers?